History

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.

Jason Wessel committed 14 years ago

Commit d1871b31 parent 24b85922 files · +4 −0Browse files

Showing the changes to kernel/debug (2 of 2 files). Show all

Unified · Split

2 files
  1. kernel/debug/kdb/kdb_bt.c +2 −0
  2. kernel/debug/kdb/kdb_main.c +2 −0
kernel/debug/kdb/kdb_bt.c+2−0
@@ -129,6 +129,8 @@ kdb_bt(int argc, const char **argv) · 128 unmodified lines
129 }129 }
130 /* Now the inactive tasks */130 /* Now the inactive tasks */
131 kdb_do_each_thread(g, p) {131 kdb_do_each_thread(g, p) {
132 if (KDB_FLAG(CMD_INTERRUPT))
133 return 0;
132 if (task_curr(p))134 if (task_curr(p))
133 continue;135 continue;
134 if (kdb_bt1(p, mask, argcount, btaprompt))136 if (kdb_bt1(p, mask, argcount, btaprompt))
kernel/debug/kdb/kdb_main.c+2−0
@@ -2100,6 +2100,8 @@ static int kdb_dmesg(int argc, const char **argv) · 2099 unmodified lines
2100 }2100 }
2101 if (!lines--)2101 if (!lines--)
2102 break;2102 break;
2103 if (KDB_FLAG(CMD_INTERRUPT))
2104 return 0;
2103 2105
2104 kdb_printf("%.*s\n", (int)len - 1, buf);2106 kdb_printf("%.*s\n", (int)len - 1, buf);
2105 }2107 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t