mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 07:04:24 +00:00
hrtimer: Improve kernel message printing
- Join split message for easier grepping, - Use pr_*() instead of printk*(), - Use %u to format unsigned cpu numbers. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/r/20180712144118.8819-1-geert+renesas@glider.be
This commit is contained in:
parent
5f936e19cc
commit
7a6e55375d
1 changed files with 3 additions and 4 deletions
|
@ -718,8 +718,8 @@ static void hrtimer_switch_to_hres(void)
|
|||
struct hrtimer_cpu_base *base = this_cpu_ptr(&hrtimer_bases);
|
||||
|
||||
if (tick_init_highres()) {
|
||||
printk(KERN_WARNING "Could not switch to high resolution "
|
||||
"mode on CPU %d\n", base->cpu);
|
||||
pr_warn("Could not switch to high resolution mode on CPU %u\n",
|
||||
base->cpu);
|
||||
return;
|
||||
}
|
||||
base->hres_active = 1;
|
||||
|
@ -1573,8 +1573,7 @@ void hrtimer_interrupt(struct clock_event_device *dev)
|
|||
else
|
||||
expires_next = ktime_add(now, delta);
|
||||
tick_program_event(expires_next, 1);
|
||||
printk_once(KERN_WARNING "hrtimer: interrupt took %llu ns\n",
|
||||
ktime_to_ns(delta));
|
||||
pr_warn_once("hrtimer: interrupt took %llu ns\n", ktime_to_ns(delta));
|
||||
}
|
||||
|
||||
/* called with interrupts disabled */
|
||||
|
|
Loading…
Reference in a new issue