diff options
author | Joe Perches <joe@perches.com> | 2014-10-31 13:50:46 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2014-11-11 15:51:42 -0500 |
commit | f47436734dc89ece62654d4db8d08163a89dd7ca (patch) | |
tree | 1977a1e352588c026c87cc1fc34c93fabba6f2b7 /arch/tile/kernel/stack.c | |
parent | ebd25caf7d511312d1a9724ab5752e9e661dfe60 (diff) |
tile: Use the more common pr_warn instead of pr_warning
And other message logging neatening.
Other miscellanea:
o coalesce formats
o realign arguments
o standardize a couple of macros
o use __func__ instead of embedding the function name
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/kernel/stack.c')
-rw-r--r-- | arch/tile/kernel/stack.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/tile/kernel/stack.c b/arch/tile/kernel/stack.c index c93977a62116..7ff5afdbd3aa 100644 --- a/arch/tile/kernel/stack.c +++ b/arch/tile/kernel/stack.c | |||
@@ -387,9 +387,7 @@ void tile_show_stack(struct KBacktraceIterator *kbt, int headers) | |||
387 | * then bust_spinlocks() spit out a space in front of us | 387 | * then bust_spinlocks() spit out a space in front of us |
388 | * and it will mess up our KERN_ERR. | 388 | * and it will mess up our KERN_ERR. |
389 | */ | 389 | */ |
390 | pr_err("\n"); | 390 | pr_err("Starting stack dump of tid %d, pid %d (%s) on cpu %d at cycle %lld\n", |
391 | pr_err("Starting stack dump of tid %d, pid %d (%s)" | ||
392 | " on cpu %d at cycle %lld\n", | ||
393 | kbt->task->pid, kbt->task->tgid, kbt->task->comm, | 391 | kbt->task->pid, kbt->task->tgid, kbt->task->comm, |
394 | raw_smp_processor_id(), get_cycles()); | 392 | raw_smp_processor_id(), get_cycles()); |
395 | } | 393 | } |
@@ -411,8 +409,7 @@ void tile_show_stack(struct KBacktraceIterator *kbt, int headers) | |||
411 | i++, address, namebuf, (unsigned long)(kbt->it.sp)); | 409 | i++, address, namebuf, (unsigned long)(kbt->it.sp)); |
412 | 410 | ||
413 | if (i >= 100) { | 411 | if (i >= 100) { |
414 | pr_err("Stack dump truncated" | 412 | pr_err("Stack dump truncated (%d frames)\n", i); |
415 | " (%d frames)\n", i); | ||
416 | break; | 413 | break; |
417 | } | 414 | } |
418 | } | 415 | } |