diff mbox

scsi: sd: make disk spin-up quieter

Message ID 29ebd092338f51b297e94510d88892492ee3b690.1504043937.git.mirq-linux@rere.qmqm.pl (mailing list archive)
State Deferred
Headers show

Commit Message

Michał Mirosław Aug. 29, 2017, 10 p.m. UTC
Currently disk spin-up is generating one line per second. Make it
less verbose by setting DEBUG level for progress indicators.
Add device id prefixes while at it.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
---
 drivers/scsi/sd.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index b6bb4e0ce0e3..7544b60e5a6d 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -2117,7 +2117,7 @@  sd_spinup_disk(struct scsi_disk *sdkp)
 			}
 			/* Wait 1 second for next try */
 			msleep(1000);
-			printk(".");
+			sd_printk(KERN_DEBUG, sdkp, ".");
 
 		/*
 		 * Wait for USB flash devices with slow firmware.
@@ -2147,9 +2147,9 @@  sd_spinup_disk(struct scsi_disk *sdkp)
 
 	if (spintime) {
 		if (scsi_status_is_good(the_result))
-			printk("ready\n");
+			sd_printk(KERN_NOTICE, sdkp, "disk is ready\n");
 		else
-			printk("not responding...\n");
+			sd_printk(KERN_NOTICE, sdkp, "disk not responding...\n");
 	}
 }