mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-30 10:55:03 +00:00
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>
This commit is contained in:
parent
0f26d0e0a7
commit
07cd27bbd4
1 changed files with 0 additions and 11 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue