mirror of
https://github.com/opnsense/src.git
synced 2026-02-20 00:11:07 -05:00
If the quiet flag is specified (-q), don't dump the unread portion of
the message buffer on startup.
This commit is contained in:
parent
007b1b7bae
commit
4d6cae0d4d
1 changed files with 4 additions and 1 deletions
|
|
@ -72,6 +72,7 @@ kvm_t *kvm;
|
|||
static char kvm_err[_POSIX2_LINE_MAX];
|
||||
|
||||
static int dumpnr;
|
||||
static int quiet;
|
||||
static int verbose;
|
||||
|
||||
static char crashdir[PATH_MAX];
|
||||
|
|
@ -239,6 +240,8 @@ kgdb_init_target(void)
|
|||
* Display the unread portion of the message buffer. This gives the
|
||||
* user a some initial data to work from.
|
||||
*/
|
||||
if (quiet)
|
||||
return;
|
||||
bufp = kgdb_parse("msgbufp->msg_ptr");
|
||||
size = (int)kgdb_parse("msgbufp->msg_size");
|
||||
rseq = (int)kgdb_parse("msgbufp->msg_rseq");
|
||||
|
|
@ -302,7 +305,7 @@ main(int argc, char *argv[])
|
|||
struct stat st;
|
||||
struct captured_main_args args;
|
||||
char *s;
|
||||
int a, ch, quiet, writecore;
|
||||
int a, ch, writecore;
|
||||
|
||||
dumpnr = -1;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue