summaryrefslogtreecommitdiffstats
path: root/kernel/debug/kdb/kdb_io.c
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2012-07-30 22:44:41 -0500
committerJason Wessel <jason.wessel@windriver.com>2012-07-31 08:16:43 -0500
commit07cd27bbd4d07af6c3e24ae479316a69e7935e1e (patch)
tree74eb5854bcd9d8d838031c0359c82c6621b79363 /kernel/debug/kdb/kdb_io.c
parent0f26d0e0a715556270d85b7946b99546a2f92888 (diff)
downloadlinux-stable-07cd27bbd4d07af6c3e24ae479316a69e7935e1e.tar.gz
linux-stable-07cd27bbd4d07af6c3e24ae479316a69e7935e1e.tar.bz2
linux-stable-07cd27bbd4d07af6c3e24ae479316a69e7935e1e.zip
kdb: Remove cpu from the more prompt
Having the CPU in the more prompt is completely redundent vs the standard kdb prompt, and it also wastes 32 bytes on the stack. Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Diffstat (limited to 'kernel/debug/kdb/kdb_io.c')
-rw-r--r--kernel/debug/kdb/kdb_io.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/kernel/debug/kdb/kdb_io.c b/kernel/debug/kdb/kdb_io.c
index bb9520f0f6ff..0a69d2adc4f3 100644
--- a/kernel/debug/kdb/kdb_io.c
+++ b/kernel/debug/kdb/kdb_io.c
@@ -715,9 +715,6 @@ kdb_printit:
/* check for having reached the LINES number of printed lines */
if (kdb_nextline == linecount) {
char buf1[16] = "";
-#if defined(CONFIG_SMP)
- char buf2[32];
-#endif
/* Watch out for recursion here. Any routine that calls
* kdb_printf will come back through here. And kdb_read
@@ -732,14 +729,6 @@ kdb_printit:
if (moreprompt == NULL)
moreprompt = "more> ";
-#if defined(CONFIG_SMP)
- if (strchr(moreprompt, '%')) {
- sprintf(buf2, moreprompt, get_cpu());
- put_cpu();
- moreprompt = buf2;
- }
-#endif
-
kdb_input_flush();
c = console_drivers;