Re: [PATCH 5/7] sh: pci: Modernize printing of kernel messages

From: Geert Uytterhoeven
Date: Tue Dec 03 2019 - 13:02:32 EST


On Tue, Dec 3, 2019 at 5:26 PM Geert Uytterhoeven
<geert+renesas@xxxxxxxxx> wrote:
> - Convert from printk() to pr_*(),
> - Add missing continuations,
> - Join broken messages.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>

> --- a/arch/sh/drivers/pci/common.c
> +++ b/arch/sh/drivers/pci/common.c
> @@ -143,7 +143,7 @@ unsigned int pcibios_handle_status_errors(unsigned long addr,
> printk(KERN_DEBUG "PCI: parity error detected: ");

Forgot to mention: I did not replace "printk(KERN_DEBUG" by "pr_debug",
as this changes behavior (pr_debug() is a dummy if DEBUG is not defined).

> pcibios_report_status(PCI_STATUS_PARITY |
> PCI_STATUS_DETECTED_PARITY, 1);
> - printk("\n");
> + pr_cont("\n");
>
> cmd |= PCI_STATUS_PARITY | PCI_STATUS_DETECTED_PARITY;
>

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds