diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2016-01-31 17:32:20 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2016-01-31 17:32:20 +0000 |
commit | f9c2ec64be5e9f8ef6336c8ebc757fcce8ef12cd (patch) | |
tree | deea245cf5bf3abb1db22906c9f675caa42848b5 /sys/kern/kern_ktr.c | |
parent | 3fa3c8c7b57b40346da1bcf36f18f010defaa645 (diff) | |
download | src-f9c2ec64be5e9f8ef6336c8ebc757fcce8ef12cd.tar.gz src-f9c2ec64be5e9f8ef6336c8ebc757fcce8ef12cd.zip |
Fix the logic in the ddb command 'show ktr /a'. Prior to r118269 it would
print until cncheckc returned a non -1, i.e. a character had been entered.
After this change it would print only if cncheckc returned a character.
As this was before each call to db_mach_vtrace the normal outcome was
nothing was printed.
With this change 'show ktr /a' will now keep printing until the user stops
the command with a key press, or there is no more entries to print.
Notes
Notes:
svn path=/head/; revision=295098
Diffstat (limited to 'sys/kern/kern_ktr.c')
-rw-r--r-- | sys/kern/kern_ktr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_ktr.c b/sys/kern/kern_ktr.c index 6885706e4c06..1af3b94f55d4 100644 --- a/sys/kern/kern_ktr.c +++ b/sys/kern/kern_ktr.c @@ -419,7 +419,7 @@ DB_SHOW_COMMAND(ktr, db_ktr_all) db_ktr_verbose |= (strchr(modif, 'V') != NULL) ? 1 : 0; /* just timestap please */ if (strchr(modif, 'a') != NULL) { db_disable_pager(); - while (cncheckc() != -1) + while (cncheckc() == -1) if (db_mach_vtrace() == 0) break; } else { |