]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ide: fix printk() levels in [atapi_]reset_pollfunc()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 24 Mar 2009 22:22:47 +0000 (23:22 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 24 Mar 2009 22:22:47 +0000 (23:22 +0100)
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-iops.c

index 91a49b543bd549c5b385a18f6fd31e2c80d2fc8b..aad0d52ff1e75d75279c3377b4ef2282fbe2be39 100644 (file)
@@ -549,7 +549,7 @@ static ide_startstop_t atapi_reset_pollfunc (ide_drive_t *drive)
        stat = hwif->tp_ops->read_status(hwif);
 
        if (OK_STAT(stat, 0, ATA_BUSY))
-               printk("%s: ATAPI reset complete\n", drive->name);
+               printk(KERN_INFO "%s: ATAPI reset complete\n", drive->name);
        else {
                if (time_before(jiffies, hwif->poll_timeout)) {
                        ide_set_handler(drive, &atapi_reset_pollfunc, HZ/20, NULL);
@@ -558,8 +558,8 @@ static ide_startstop_t atapi_reset_pollfunc (ide_drive_t *drive)
                }
                /* end of polling */
                hwif->polling = 0;
-               printk("%s: ATAPI reset timed-out, status=0x%02x\n",
-                               drive->name, stat);
+               printk(KERN_ERR "%s: ATAPI reset timed-out, status=0x%02x\n",
+                       drive->name, stat);
                /* do it the old fashioned way */
                return do_reset1(drive, 1);
        }
@@ -618,7 +618,8 @@ static ide_startstop_t reset_pollfunc (ide_drive_t *drive)
                        /* continue polling */
                        return ide_started;
                }
-               printk("%s: reset timed-out, status=0x%02x\n", hwif->name, tmp);
+               printk(KERN_ERR "%s: reset timed-out, status=0x%02x\n",
+                       hwif->name, tmp);
                drive->failures++;
                err = -EIO;
        } else  {