Skip to contentSkip to conversation

floppy: Add floppy prefix to pr_info

PATCH In review Corentin Labbe 2 participants 2 messages Jul 28, 2017 – Oct 12, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/block/floppy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/block/floppy.c +1 -1
index 9c00f29e40c1..61eb80c8894b 100644
@@ -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
#1 lore raw
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.

---
 drivers/block/floppy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/block/floppy.c +0 -0
index 9c00f29e40c1..61eb80c8894b 100644

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