lkml.org 
[lkml]   [2017]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] floppy: Add floppy prefix to pr_info
On Fri, 28 Jul 2017, Corentin Labbe wrote:

> When booting a qemu virtual machine I got in dmesg the following message
> alone: "work still pending".
> Without prefix, it is hard to know which subsystem got work pending.
>
> This patch add a "floppy:" prefix to this message.
>
> Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
> ---
> drivers/block/floppy.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c
> index 9c00f29e40c1..61eb80c8894b 100644
> --- a/drivers/block/floppy.c
> +++ b/drivers/block/floppy.c
> @@ -4872,7 +4872,7 @@ static void floppy_release_irq_and_dma(void)
> if (delayed_work_pending(&fd_timer))
> pr_info("auxiliary floppy timer still active\n");
> if (work_pending(&floppy_work))
> - pr_info("work still pending\n");
> + pr_info("floppy: work still pending\n");

I think it'd actually be much better to fix this globally for all such
instances in that file, and define pr_fmt proper.
Could you please do that instead?

Thanks,

--
Jiri Kosina
SUSE Labs

\
 
 \ /
  Last update: 2017-10-12 15:35    [W:0.034 / U:3.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site