diff options
author | andrew <andrew@FreeBSD.org> | 2016-01-31 17:32:20 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2016-01-31 17:32:20 +0000 |
commit | aac959f2803afefc82f457e5b8b61a12c89b1396 (patch) | |
tree | deea245cf5bf3abb1db22906c9f675caa42848b5 /sys/kern | |
parent | f3fd5fb6506e47f14a0398218b03da192cc6a6fb (diff) | |
download | FreeBSD-src-aac959f2803afefc82f457e5b8b61a12c89b1396.zip FreeBSD-src-aac959f2803afefc82f457e5b8b61a12c89b1396.tar.gz |
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.
Diffstat (limited to 'sys/kern')
-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 6885706..1af3b94 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 { |