mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Fragmented SCSI disk messages in 2.6.7
@ 2004-06-23 22:00 Chuck Ebbert
  0 siblings, 0 replies; only message in thread
From: Chuck Ebbert @ 2004-06-23 22:00 UTC (permalink / raw)
  To: James Bottomley; +Cc: linux-kernel

Without this patch I get the following on bootup with media
inserted in a USB powered Zip 250:


sda: Spinning up disk....<6>EXT3 FS on hde3, internal journal
Adding 524152k swap on /dev/hdg2.  Priority:-1 extents:1
Adding 524152k swap on /dev/hde2.  Priority:-2 extents:1
.<6>kjournald starting.  Commit interval 5 seconds
((  --- Snip 17 lines of EXT3 mount messages --- ))
..<3>microcode: error! Bad data in microcode data file
microcode: Error in the microcode data
.....ready


Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com>

--- 267.0/drivers/scsi/sd.c     2004-06-21 16:09:58.099832360 -0400
+++ 267.1/drivers/scsi/sd.c     2004-06-21 16:25:12.464827752 -0400
@@ -889,7 +889,7 @@ sd_spinup_disk(struct scsi_disk *sdkp, c
                } else if (SRpnt->sr_sense_buffer[2] == NOT_READY) {
                        unsigned long time1;
                        if (!spintime) {
-                               printk(KERN_NOTICE "%s: Spinning up disk...",
+                               printk(KERN_NOTICE "%s: Spinning up disk...\n",
                                       diskname);
                                cmd[0] = START_STOP;
                                cmd[1] = 1;     /* Return immediately */
@@ -912,7 +912,6 @@ sd_spinup_disk(struct scsi_disk *sdkp, c
                                current->state = TASK_UNINTERRUPTIBLE;
                                time1 = schedule_timeout(time1);
                        } while(time1);
-                       printk(".");
                } else {
                        /* we don't understand the sense code, so it's
                         * probably pointless to loop */
@@ -928,9 +927,9 @@ sd_spinup_disk(struct scsi_disk *sdkp, c
 
        if (spintime) {
                if (scsi_status_is_good(the_result))
-                       printk("ready\n");
+                       printk(KERN_NOTICE "%s: Disk ready\n", diskname);
                else
-                       printk("not responding...\n");
+                       printk(KERN_NOTICE "%s: Disk not responding...\n", diskname);
        }
 }
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-06-23 22:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-23 22:00 [PATCH] Fragmented SCSI disk messages in 2.6.7 Chuck Ebbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®