Having the CPU in the more prompt is completely redundent vs the standard kdb prompt, and it also wastes 32 bytes on the stack.
Showing the changes to kernel/debug (1 of 1 file). Show all
Unified · Split
| @@ -715,9 +715,6 @@ kdb_printit: · 714 unmodified lines | ||
| 715 | 715 | /* check for having reached the LINES number of printed lines */ |
| 716 | 716 | if (kdb_nextline == linecount) { |
| 717 | 717 | char buf1[16] = ""; |
| 718 | −#if defined(CONFIG_SMP) | |
| 719 | − char buf2[32]; | |
| 720 | −#endif | |
| 721 | 718 | |
| 722 | 719 | /* Watch out for recursion here. Any routine that calls |
| 723 | 720 | * kdb_printf will come back through here. And kdb_read |
| @@ -732,14 +729,6 @@ kdb_printit: · 8 unmodified lines | ||
| 732 | 729 | if (moreprompt == NULL) |
| 733 | 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 | 732 | kdb_input_flush(); |
| 744 | 733 | c = console_drivers; |
| 745 | 734 | |