kdb: Fix dmesg/bta scroll to quit with 'q'
If you press 'q' the pager should exit instead of printing everything from dmesg which can really bog down a 9600 baud serial link. The same is true for the bta command. Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
This commit is contained in:
@@ -129,6 +129,8 @@ kdb_bt(int argc, const char **argv)
|
|||||||
}
|
}
|
||||||
/* Now the inactive tasks */
|
/* Now the inactive tasks */
|
||||||
kdb_do_each_thread(g, p) {
|
kdb_do_each_thread(g, p) {
|
||||||
|
if (KDB_FLAG(CMD_INTERRUPT))
|
||||||
|
return 0;
|
||||||
if (task_curr(p))
|
if (task_curr(p))
|
||||||
continue;
|
continue;
|
||||||
if (kdb_bt1(p, mask, argcount, btaprompt))
|
if (kdb_bt1(p, mask, argcount, btaprompt))
|
||||||
|
@@ -2100,6 +2100,8 @@ static int kdb_dmesg(int argc, const char **argv)
|
|||||||
}
|
}
|
||||||
if (!lines--)
|
if (!lines--)
|
||||||
break;
|
break;
|
||||||
|
if (KDB_FLAG(CMD_INTERRUPT))
|
||||||
|
return 0;
|
||||||
|
|
||||||
kdb_printf("%.*s\n", (int)len - 1, buf);
|
kdb_printf("%.*s\n", (int)len - 1, buf);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user