summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/xmon
diff options
context:
space:
mode:
authorSam bobroff <sam.bobroff@au1.ibm.com>2015-10-08 02:50:24 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2015-10-15 11:32:02 +0200
commit0c23a88ccc32db31c31677d70e37b49ef3ae9ed9 (patch)
tree6cc66384f47f18168868b01bdd4f9193bbd93ca1 /arch/powerpc/xmon
parentpowerpc/xmon: Paged output for paca display (diff)
downloadlinux-0c23a88ccc32db31c31677d70e37b49ef3ae9ed9.tar.xz
linux-0c23a88ccc32db31c31677d70e37b49ef3ae9ed9.zip
powerpc/xmon: Paginate kernel log buffer display
The kernel log buffer is often much longer than the size of a terminal so paginate it's output. Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/xmon')
-rw-r--r--arch/powerpc/xmon/xmon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c
index f829baf45fd7..bf8f49a8b3a7 100644
--- a/arch/powerpc/xmon/xmon.c
+++ b/arch/powerpc/xmon/xmon.c
@@ -242,9 +242,7 @@ Commands:\n\
" u dump TLB\n"
#endif
" ? help\n"
-#ifdef CONFIG_PPC64
-" # n limit output to n lines per page (dump paca only)\n"
-#endif
+" # n limit output to n lines per page (for dp, dpa, dl)\n"
" zr reboot\n\
zh halt\n"
;
@@ -2333,10 +2331,12 @@ dump_log_buf(void)
sync();
kmsg_dump_rewind_nolock(&dumper);
+ xmon_start_pagination();
while (kmsg_dump_get_line_nolock(&dumper, false, buf, sizeof(buf), &len)) {
buf[len] = '\0';
printf("%s", buf);
}
+ xmon_end_pagination();
sync();
/* wait a little while to see if we get a machine check */