android: fiq_debugger: fix cut-off help message
authorColin Cross <ccross@android.com>
Wed, 22 Apr 2015 21:38:42 +0000 (14:38 -0700)
committerGreg Hackmann <ghackmann@google.com>
Mon, 4 May 2015 21:22:34 +0000 (21:22 +0000)
fiq_debugger_printf has a 256 byte limit, which was causing the help
lines for "kmsg" and "version" to be dropped.  Split the long string
into two calls.

Change-Id: I55f9f030247cc16d13ae6236736311a5ef0c7aa0
Signed-off-by: Colin Cross <ccross@android.com>
drivers/staging/android/fiq_debugger/fiq_debugger.c

index 7d6b4ae8a2cdb4a6bc8695e9bedc6cb3dbc869a6..1d733624d70a2ad078b6592339a67bac9a91fb17 100644 (file)
@@ -429,7 +429,8 @@ static void fiq_debugger_help(struct fiq_debugger_state *state)
                                " pc            PC status\n"
                                " regs          Register dump\n"
                                " allregs       Extended Register dump\n"
-                               " bt            Stack trace\n"
+                               " bt            Stack trace\n");
+       fiq_debugger_printf(&state->output,
                                " reboot [<c>]  Reboot with command <c>\n"
                                " reset [<c>]   Hard reset with command <c>\n"
                                " irqs          Interupt status\n"