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/hardwall.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/hardwall.c')
-rw-r--r-- | arch/tile/kernel/hardwall.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/tile/kernel/hardwall.c b/arch/tile/kernel/hardwall.c index aca6000bca75..c4646bb99342 100644 --- a/arch/tile/kernel/hardwall.c +++ b/arch/tile/kernel/hardwall.c | |||
@@ -365,8 +365,7 @@ void __kprobes do_hardwall_trap(struct pt_regs* regs, int fault_num) | |||
365 | * to quiesce. | 365 | * to quiesce. |
366 | */ | 366 | */ |
367 | if (rect->teardown_in_progress) { | 367 | if (rect->teardown_in_progress) { |
368 | pr_notice("cpu %d: detected %s hardwall violation %#lx" | 368 | pr_notice("cpu %d: detected %s hardwall violation %#lx while teardown already in progress\n", |
369 | " while teardown already in progress\n", | ||
370 | cpu, hwt->name, | 369 | cpu, hwt->name, |
371 | (long)mfspr_XDN(hwt, DIRECTION_PROTECT)); | 370 | (long)mfspr_XDN(hwt, DIRECTION_PROTECT)); |
372 | goto done; | 371 | goto done; |
@@ -630,8 +629,7 @@ static void _hardwall_deactivate(struct hardwall_type *hwt, | |||
630 | struct thread_struct *ts = &task->thread; | 629 | struct thread_struct *ts = &task->thread; |
631 | 630 | ||
632 | if (cpumask_weight(&task->cpus_allowed) != 1) { | 631 | if (cpumask_weight(&task->cpus_allowed) != 1) { |
633 | pr_err("pid %d (%s) releasing %s hardwall with" | 632 | pr_err("pid %d (%s) releasing %s hardwall with an affinity mask containing %d cpus!\n", |
634 | " an affinity mask containing %d cpus!\n", | ||
635 | task->pid, task->comm, hwt->name, | 633 | task->pid, task->comm, hwt->name, |
636 | cpumask_weight(&task->cpus_allowed)); | 634 | cpumask_weight(&task->cpus_allowed)); |
637 | BUG(); | 635 | BUG(); |