diff options
author | Joe Perches <joe@perches.com> | 2009-07-06 16:05:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-07-08 13:30:03 -0400 |
commit | ad361c9884e809340f6daca80d56a9e9c871690a (patch) | |
tree | 7ec02c9934964fecdc791a0df0fc722d3bda5c53 /arch/m68knommu/kernel | |
parent | e3288775ff63900fbb7db505f2b9a1bee98f07df (diff) |
Remove multiple KERN_ prefixes from printk formats
Commit 5fd29d6ccbc98884569d6f3105aeca70858b3e0f ("printk: clean up
handling of log-levels and newlines") changed printk semantics. printk
lines with multiple KERN_<level> prefixes are no longer emitted as
before the patch.
<level> is now included in the output on each additional use.
Remove all uses of multiple KERN_<level>s in formats.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/m68knommu/kernel')
-rw-r--r-- | arch/m68knommu/kernel/process.c | 21 | ||||
-rw-r--r-- | arch/m68knommu/kernel/traps.c | 6 |
2 files changed, 13 insertions, 14 deletions
diff --git a/arch/m68knommu/kernel/process.c b/arch/m68knommu/kernel/process.c index 1e96c6eb6312..8f8f4abab2ff 100644 --- a/arch/m68knommu/kernel/process.c +++ b/arch/m68knommu/kernel/process.c | |||
@@ -290,7 +290,7 @@ void dump(struct pt_regs *fp) | |||
290 | unsigned char *tp; | 290 | unsigned char *tp; |
291 | int i; | 291 | int i; |
292 | 292 | ||
293 | printk(KERN_EMERG "\n" KERN_EMERG "CURRENT PROCESS:\n" KERN_EMERG "\n"); | 293 | printk(KERN_EMERG "\nCURRENT PROCESS:\n\n"); |
294 | printk(KERN_EMERG "COMM=%s PID=%d\n", current->comm, current->pid); | 294 | printk(KERN_EMERG "COMM=%s PID=%d\n", current->comm, current->pid); |
295 | 295 | ||
296 | if (current->mm) { | 296 | if (current->mm) { |
@@ -301,8 +301,7 @@ void dump(struct pt_regs *fp) | |||
301 | (int) current->mm->end_data, | 301 | (int) current->mm->end_data, |
302 | (int) current->mm->end_data, | 302 | (int) current->mm->end_data, |
303 | (int) current->mm->brk); | 303 | (int) current->mm->brk); |
304 | printk(KERN_EMERG "USER-STACK=%08x KERNEL-STACK=%08x\n" | 304 | printk(KERN_EMERG "USER-STACK=%08x KERNEL-STACK=%08x\n\n", |
305 | KERN_EMERG "\n", | ||
306 | (int) current->mm->start_stack, | 305 | (int) current->mm->start_stack, |
307 | (int)(((unsigned long) current) + THREAD_SIZE)); | 306 | (int)(((unsigned long) current) + THREAD_SIZE)); |
308 | } | 307 | } |
@@ -313,35 +312,35 @@ void dump(struct pt_regs *fp) | |||
313 | fp->d0, fp->d1, fp->d2, fp->d3); | 312 | fp->d0, fp->d1, fp->d2, fp->d3); |
314 | printk(KERN_EMERG "d4: %08lx d5: %08lx a0: %08lx a1: %08lx\n", | 313 | printk(KERN_EMERG "d4: %08lx d5: %08lx a0: %08lx a1: %08lx\n", |
315 | fp->d4, fp->d5, fp->a0, fp->a1); | 314 | fp->d4, fp->d5, fp->a0, fp->a1); |
316 | printk(KERN_EMERG "\n" KERN_EMERG "USP: %08x TRAPFRAME: %08x\n", | 315 | printk(KERN_EMERG "\nUSP: %08x TRAPFRAME: %08x\n", |
317 | (unsigned int) rdusp(), (unsigned int) fp); | 316 | (unsigned int) rdusp(), (unsigned int) fp); |
318 | 317 | ||
319 | printk(KERN_EMERG "\n" KERN_EMERG "CODE:"); | 318 | printk(KERN_EMERG "\nCODE:"); |
320 | tp = ((unsigned char *) fp->pc) - 0x20; | 319 | tp = ((unsigned char *) fp->pc) - 0x20; |
321 | for (sp = (unsigned long *) tp, i = 0; (i < 0x40); i += 4) { | 320 | for (sp = (unsigned long *) tp, i = 0; (i < 0x40); i += 4) { |
322 | if ((i % 0x10) == 0) | 321 | if ((i % 0x10) == 0) |
323 | printk("\n" KERN_EMERG "%08x: ", (int) (tp + i)); | 322 | printk(KERN_EMERG "%08x: ", (int) (tp + i)); |
324 | printk("%08x ", (int) *sp++); | 323 | printk("%08x ", (int) *sp++); |
325 | } | 324 | } |
326 | printk("\n" KERN_EMERG "\n"); | 325 | printk(KERN_EMERG "\n"); |
327 | 326 | ||
328 | printk(KERN_EMERG "KERNEL STACK:"); | 327 | printk(KERN_EMERG "KERNEL STACK:"); |
329 | tp = ((unsigned char *) fp) - 0x40; | 328 | tp = ((unsigned char *) fp) - 0x40; |
330 | for (sp = (unsigned long *) tp, i = 0; (i < 0xc0); i += 4) { | 329 | for (sp = (unsigned long *) tp, i = 0; (i < 0xc0); i += 4) { |
331 | if ((i % 0x10) == 0) | 330 | if ((i % 0x10) == 0) |
332 | printk("\n" KERN_EMERG "%08x: ", (int) (tp + i)); | 331 | printk(KERN_EMERG "%08x: ", (int) (tp + i)); |
333 | printk("%08x ", (int) *sp++); | 332 | printk("%08x ", (int) *sp++); |
334 | } | 333 | } |
335 | printk("\n" KERN_EMERG "\n"); | 334 | printk(KERN_EMERG "\n"); |
336 | 335 | ||
337 | printk(KERN_EMERG "USER STACK:"); | 336 | printk(KERN_EMERG "USER STACK:"); |
338 | tp = (unsigned char *) (rdusp() - 0x10); | 337 | tp = (unsigned char *) (rdusp() - 0x10); |
339 | for (sp = (unsigned long *) tp, i = 0; (i < 0x80); i += 4) { | 338 | for (sp = (unsigned long *) tp, i = 0; (i < 0x80); i += 4) { |
340 | if ((i % 0x10) == 0) | 339 | if ((i % 0x10) == 0) |
341 | printk("\n" KERN_EMERG "%08x: ", (int) (tp + i)); | 340 | printk(KERN_EMERG "%08x: ", (int) (tp + i)); |
342 | printk("%08x ", (int) *sp++); | 341 | printk("%08x ", (int) *sp++); |
343 | } | 342 | } |
344 | printk("\n" KERN_EMERG "\n"); | 343 | printk(KERN_EMERG "\n"); |
345 | } | 344 | } |
346 | 345 | ||
347 | /* | 346 | /* |
diff --git a/arch/m68knommu/kernel/traps.c b/arch/m68knommu/kernel/traps.c index 51d325343ab5..3739c8f657d7 100644 --- a/arch/m68knommu/kernel/traps.c +++ b/arch/m68knommu/kernel/traps.c | |||
@@ -111,7 +111,7 @@ static void print_this_address(unsigned long addr, int i) | |||
111 | if (i % 5) | 111 | if (i % 5) |
112 | printk(KERN_CONT " [%08lx] ", addr); | 112 | printk(KERN_CONT " [%08lx] ", addr); |
113 | else | 113 | else |
114 | printk(KERN_CONT "\n" KERN_EMERG " [%08lx] ", addr); | 114 | printk(KERN_EMERG " [%08lx] ", addr); |
115 | i++; | 115 | i++; |
116 | #endif | 116 | #endif |
117 | } | 117 | } |
@@ -137,8 +137,8 @@ static void __show_stack(struct task_struct *task, unsigned long *stack) | |||
137 | if (stack + 1 + i > endstack) | 137 | if (stack + 1 + i > endstack) |
138 | break; | 138 | break; |
139 | if (i % 8 == 0) | 139 | if (i % 8 == 0) |
140 | printk("\n" KERN_EMERG " "); | 140 | printk(KERN_EMERG " "); |
141 | printk(" %08lx", *(stack + i)); | 141 | printk(KERN_CONT " %08lx", *(stack + i)); |
142 | } | 142 | } |
143 | printk("\n"); | 143 | printk("\n"); |
144 | i = 0; | 144 | i = 0; |