diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-24 18:22:47 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-24 18:22:47 -0400 |
commit | 4d7bb471ce0283f586817abea81254b67598aae6 (patch) | |
tree | 75d116c8d075f4e6d61fffc7c7996a4a5be2b90f /drivers/ide | |
parent | 1574cf6cb4800525be769ee6023c567113fa2d18 (diff) |
ide: fix printk() levels in [atapi_]reset_pollfunc()
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/ide-iops.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c index 91a49b543bd5..aad0d52ff1e7 100644 --- a/drivers/ide/ide-iops.c +++ b/drivers/ide/ide-iops.c | |||
@@ -549,7 +549,7 @@ static ide_startstop_t atapi_reset_pollfunc (ide_drive_t *drive) | |||
549 | stat = hwif->tp_ops->read_status(hwif); | 549 | stat = hwif->tp_ops->read_status(hwif); |
550 | 550 | ||
551 | if (OK_STAT(stat, 0, ATA_BUSY)) | 551 | if (OK_STAT(stat, 0, ATA_BUSY)) |
552 | printk("%s: ATAPI reset complete\n", drive->name); | 552 | printk(KERN_INFO "%s: ATAPI reset complete\n", drive->name); |
553 | else { | 553 | else { |
554 | if (time_before(jiffies, hwif->poll_timeout)) { | 554 | if (time_before(jiffies, hwif->poll_timeout)) { |
555 | ide_set_handler(drive, &atapi_reset_pollfunc, HZ/20, NULL); | 555 | 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) | |||
558 | } | 558 | } |
559 | /* end of polling */ | 559 | /* end of polling */ |
560 | hwif->polling = 0; | 560 | hwif->polling = 0; |
561 | printk("%s: ATAPI reset timed-out, status=0x%02x\n", | 561 | printk(KERN_ERR "%s: ATAPI reset timed-out, status=0x%02x\n", |
562 | drive->name, stat); | 562 | drive->name, stat); |
563 | /* do it the old fashioned way */ | 563 | /* do it the old fashioned way */ |
564 | return do_reset1(drive, 1); | 564 | return do_reset1(drive, 1); |
565 | } | 565 | } |
@@ -618,7 +618,8 @@ static ide_startstop_t reset_pollfunc (ide_drive_t *drive) | |||
618 | /* continue polling */ | 618 | /* continue polling */ |
619 | return ide_started; | 619 | return ide_started; |
620 | } | 620 | } |
621 | printk("%s: reset timed-out, status=0x%02x\n", hwif->name, tmp); | 621 | printk(KERN_ERR "%s: reset timed-out, status=0x%02x\n", |
622 | hwif->name, tmp); | ||
622 | drive->failures++; | 623 | drive->failures++; |
623 | err = -EIO; | 624 | err = -EIO; |
624 | } else { | 625 | } else { |