Since commit 4bcc595ccd80 ("printk: reinstate KERN_CONT for printing continuation lines") the output from show_stacktrace on MIPS has been pretty unreadable due to the lack of KERN_CONT markers. Use pr_cont to provide the appropriate markers & restore the expected output. Also start a new line with printk such that the presence of timing information does not interfere with output.
Unified · Split
| @@ -174,22 +174,24 @@ static void show_stacktrace(struct task_struct *task, · 173 unmodified lines | ||
| 174 | 174 | printk("Stack :"); |
| 175 | 175 | i = 0; |
| 176 | 176 | while ((unsigned long) sp & (PAGE_SIZE - 1)) { |
| 177 | − if (i && ((i % (64 / field)) == 0)) | |
| 178 | − printk("\n "); | |
| 177 | + if (i && ((i % (64 / field)) == 0)) { | |
| 178 | + pr_cont("\n"); | |
| 179 | + printk(" "); | |
| 180 | + } | |
| 179 | 181 | if (i > 39) { |
| 180 | − printk(" ..."); | |
| 182 | + pr_cont(" ..."); | |
| 181 | 183 | break; |
| 182 | 184 | } |
| 183 | 185 | |
| 184 | 186 | if (__get_user(stackdata, sp++)) { |
| 185 | − printk(" (Bad stack address)"); | |
| 187 | + pr_cont(" (Bad stack address)"); | |
| 186 | 188 | break; |
| 187 | 189 | } |
| 188 | 190 | |
| 189 | − printk(" %0*lx", field, stackdata); | |
| 191 | + pr_cont(" %0*lx", field, stackdata); | |
| 190 | 192 | i++; |
| 191 | 193 | } |
| 192 | − printk("\n"); | |
| 194 | + pr_cont("\n"); | |
| 193 | 195 | show_backtrace(task, regs); |
| 194 | 196 | } |
| 195 | 197 | |