floppy: Add floppy prefix to pr_info
Subsystems (2)
PATCH 1/1 floppy: Add floppy prefix to pr_info
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 <[email protected]>
--- drivers/block/floppy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/block/floppy.c +1 -1
@@ -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" ); old_fdc = fdc;for (fdc =0 ; fdc <N_FDC ; fdc++)if (FDCS ->address !=-1 )
Signature · 1 line
2.13.0
Quoted 16 lines · Corentin Labbe
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 <[email protected]>--- drivers/block/floppy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/block/floppy.c +0
-0
drivers/block/floppy.c static void floppy_release_irq_and_dma(void) · line 4875
Quoted 5 lines
drivers/block/floppy.c +1
-1@@ -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,
Signature · 2 lines
Jiri Kosina SUSE Labs