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
715 /* check for having reached the LINES number of printed lines */715 /* check for having reached the LINES number of printed lines */
716 if (kdb_nextline == linecount) {716 if (kdb_nextline == linecount) {
717 char buf1[16] = "";717 char buf1[16] = "";
718#if defined(CONFIG_SMP)
719 char buf2[32];
720#endif
721 718
722 /* Watch out for recursion here. Any routine that calls719 /* Watch out for recursion here. Any routine that calls
723 * kdb_printf will come back through here. And kdb_read720 * kdb_printf will come back through here. And kdb_read
@@ -732,14 +729,6 @@ kdb_printit: · 8 unmodified lines
732 if (moreprompt == NULL)729 if (moreprompt == NULL)
733 moreprompt = "more> ";730 moreprompt = "more> ";
734 731
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
743 kdb_input_flush();732 kdb_input_flush();
744 c = console_drivers;733 c = console_drivers;
745 734

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