diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2016-12-06 19:57:37 +0100 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2017-02-12 10:36:52 +0100 |
commit | 7c79e1eef8c9a723e589364643c7e74b688e23bf (patch) | |
tree | 14dbba3ffb10615785668fdc988bf538cd8683e5 /arch/m68k/kernel/dma.c | |
parent | 4eee1e72ad06bdc942b8f8c221d49691ef232c56 (diff) | |
download | linux-7c79e1eef8c9a723e589364643c7e74b688e23bf.tar.bz2 |
m68k/kernel: Modernize printing of kernel messages
- Use pr_err_ratelimited() instead of deprecated printk_ratelimit(),
- Add dummies for validating format strings when debugging is
disabled,
- Convert from printk() to pr_*(),
- Correct printf()-style format specifiers.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/kernel/dma.c')
-rw-r--r-- | arch/m68k/kernel/dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/m68k/kernel/dma.c b/arch/m68k/kernel/dma.c index 07070065a425..1e4f386ba31e 100644 --- a/arch/m68k/kernel/dma.c +++ b/arch/m68k/kernel/dma.c @@ -110,8 +110,8 @@ static void m68k_dma_sync_single_for_device(struct device *dev, cache_clear(handle, size); break; default: - if (printk_ratelimit()) - printk("dma_sync_single_for_device: unsupported dir %u\n", dir); + pr_err_ratelimited("dma_sync_single_for_device: unsupported dir %u\n", + dir); break; } } |