History

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.

Jason Wessel committed 14 years ago

Commit 07cd27b1 parent 0f26d0e1 file · +0 −11Browse files

Showing the changes to kernel/debug (1 of 1 file). Show all

Unified · Split

kernel/debug/kdb/kdb_io.c+0−11
@@ -715,9 +715,6 @@ kdb_printit: · 714 unmodified lines
715715 /* check for having reached the LINES number of printed lines */
716716 if (kdb_nextline == linecount) {
717717 char buf1[16] = "";
718−#if defined(CONFIG_SMP)
719− char buf2[32];
720−#endif
721718
722719 /* Watch out for recursion here. Any routine that calls
723720 * kdb_printf will come back through here. And kdb_read
@@ -732,14 +729,6 @@ kdb_printit: · 8 unmodified lines
732729 if (moreprompt == NULL)
733730 moreprompt = "more> ";
734731
735−#if defined(CONFIG_SMP)
736− if (strchr(moreprompt, '%')) {
737− sprintf(buf2, moreprompt, get_cpu());
738− put_cpu();
739− moreprompt = buf2;
740− }
741−#endif
742−
743732 kdb_input_flush();
744733 c = console_drivers;
745734

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t