Commit 4450dc0a authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Thomas Gleixner

clockevents: Fix kernel messages split across multiple lines

Convert the clockevents driver from old-style printk() to pr_info() and
pr_cont(), to fix split kernel messages like below:

    Clockevents: could not switch to one-shot mode:
     dummy_timer is not functional.
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Link: https://lkml.kernel.org/r/1522942018-14471-1-git-send-email-geert%2Brenesas@glider.be
parent a27fc142
...@@ -82,15 +82,14 @@ int tick_switch_to_oneshot(void (*handler)(struct clock_event_device *)) ...@@ -82,15 +82,14 @@ int tick_switch_to_oneshot(void (*handler)(struct clock_event_device *))
if (!dev || !(dev->features & CLOCK_EVT_FEAT_ONESHOT) || if (!dev || !(dev->features & CLOCK_EVT_FEAT_ONESHOT) ||
!tick_device_is_functional(dev)) { !tick_device_is_functional(dev)) {
printk(KERN_INFO "Clockevents: " pr_info("Clockevents: could not switch to one-shot mode:");
"could not switch to one-shot mode:");
if (!dev) { if (!dev) {
printk(" no tick device\n"); pr_cont(" no tick device\n");
} else { } else {
if (!tick_device_is_functional(dev)) if (!tick_device_is_functional(dev))
printk(" %s is not functional.\n", dev->name); pr_cont(" %s is not functional.\n", dev->name);
else else
printk(" %s does not support one-shot mode.\n", pr_cont(" %s does not support one-shot mode.\n",
dev->name); dev->name);
} }
return -EINVAL; return -EINVAL;
......
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