1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00

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.
This commit is contained in:
Andrew Turner 2016-01-31 17:32:20 +00:00
parent 3fa3c8c7b5
commit f9c2ec64be
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=295098

View File

@ -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 {