summaryrefslogtreecommitdiffstats
path: root/kernel/debug/kdb/kdb_main.c
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2012-08-26 21:43:12 -0500
committerJason Wessel <jason.wessel@windriver.com>2012-10-12 06:37:35 -0500
commitd1871b38fccdc4b6575b0cabdea9e06bc70167eb (patch)
treeb750732307696a074df2d71be6b034ba96557d8b /kernel/debug/kdb/kdb_main.c
parent24b8592ec021c433e73e6d8000e71f5c341fdde0 (diff)
downloadop-kernel-dev-d1871b38fccdc4b6575b0cabdea9e06bc70167eb.zip
op-kernel-dev-d1871b38fccdc4b6575b0cabdea9e06bc70167eb.tar.gz
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>
Diffstat (limited to 'kernel/debug/kdb/kdb_main.c')
-rw-r--r--kernel/debug/kdb/kdb_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/debug/kdb/kdb_main.c b/kernel/debug/kdb/kdb_main.c
index 31df170..1afeb5c 100644
--- a/kernel/debug/kdb/kdb_main.c
+++ b/kernel/debug/kdb/kdb_main.c
@@ -2100,6 +2100,8 @@ static int kdb_dmesg(int argc, const char **argv)
}
if (!lines--)
break;
+ if (KDB_FLAG(CMD_INTERRUPT))
+ return 0;
kdb_printf("%.*s\n", (int)len - 1, buf);
}
OpenPOWER on IntegriCloud