Commit 656c3b79 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds

kernel/watchdog.c: convert printk/pr_warning to pr_foo()

Replace some obsolete functions.
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 1b7f8ba6
...@@ -260,9 +260,11 @@ static void watchdog_overflow_callback(struct perf_event *event, ...@@ -260,9 +260,11 @@ static void watchdog_overflow_callback(struct perf_event *event,
return; return;
if (hardlockup_panic) if (hardlockup_panic)
panic("Watchdog detected hard LOCKUP on cpu %d", this_cpu); panic("Watchdog detected hard LOCKUP on cpu %d",
this_cpu);
else else
WARN(1, "Watchdog detected hard LOCKUP on cpu %d", this_cpu); WARN(1, "Watchdog detected hard LOCKUP on cpu %d",
this_cpu);
__this_cpu_write(hard_watchdog_warn, true); __this_cpu_write(hard_watchdog_warn, true);
return; return;
...@@ -345,7 +347,7 @@ static enum hrtimer_restart watchdog_timer_fn(struct hrtimer *hrtimer) ...@@ -345,7 +347,7 @@ static enum hrtimer_restart watchdog_timer_fn(struct hrtimer *hrtimer)
} }
} }
printk(KERN_EMERG "BUG: soft lockup - CPU#%d stuck for %us! [%s:%d]\n", pr_emerg("BUG: soft lockup - CPU#%d stuck for %us! [%s:%d]\n",
smp_processor_id(), duration, smp_processor_id(), duration,
current->comm, task_pid_nr(current)); current->comm, task_pid_nr(current));
print_modules(); print_modules();
...@@ -484,7 +486,7 @@ static int watchdog_nmi_enable(unsigned int cpu) ...@@ -484,7 +486,7 @@ static int watchdog_nmi_enable(unsigned int cpu)
if (PTR_ERR(event) == -EOPNOTSUPP) if (PTR_ERR(event) == -EOPNOTSUPP)
pr_info("disabled (cpu%i): not supported (no LAPIC?)\n", cpu); pr_info("disabled (cpu%i): not supported (no LAPIC?)\n", cpu);
else if (PTR_ERR(event) == -ENOENT) else if (PTR_ERR(event) == -ENOENT)
pr_warning("disabled (cpu%i): hardware events not enabled\n", pr_warn("disabled (cpu%i): hardware events not enabled\n",
cpu); cpu);
else else
pr_err("disabled (cpu%i): unable to create perf event: %ld\n", pr_err("disabled (cpu%i): unable to create perf event: %ld\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment