Skip to content

Commit

Permalink
kdb: Remove cpu from the more prompt
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jason Wessel committed Jul 31, 2012
1 parent 0f26d0e commit 07cd27b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions kernel/debug/kdb/kdb_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -715,9 +715,6 @@ int vkdb_printf(const char *fmt, va_list ap)
/* 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
Expand All @@ -732,14 +729,6 @@ int vkdb_printf(const char *fmt, va_list ap)
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;

Expand Down

0 comments on commit 07cd27b

Please sign in to comment.