aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sata_promise.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-05-15 07:57:56 -0400
committerTejun Heo <htejun@gmail.com>2006-05-15 07:57:56 -0400
commitf15a1dafed22d5037e0feea7528e1eeb28a1a7a3 (patch)
tree5bf5c98332036d62bd4cca3a104844faa318c712 /drivers/scsi/sata_promise.c
parent61440db61fe4945ad9f7b32b4d6a22b17174aa1f (diff)
[PATCH] libata: use ATA printk helpers
Use ATA printk helpers. Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'drivers/scsi/sata_promise.c')
-rw-r--r--drivers/scsi/sata_promise.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/scsi/sata_promise.c b/drivers/scsi/sata_promise.c
index ddbc0c6dd9fe..e9d61bc2b247 100644
--- a/drivers/scsi/sata_promise.c
+++ b/drivers/scsi/sata_promise.c
@@ -435,7 +435,7 @@ static void pdc_eng_timeout(struct ata_port *ap)
435 switch (qc->tf.protocol) { 435 switch (qc->tf.protocol) {
436 case ATA_PROT_DMA: 436 case ATA_PROT_DMA:
437 case ATA_PROT_NODATA: 437 case ATA_PROT_NODATA:
438 printk(KERN_ERR "ata%u: command timeout\n", ap->id); 438 ata_port_printk(ap, KERN_ERR, "command timeout\n");
439 drv_stat = ata_wait_idle(ap); 439 drv_stat = ata_wait_idle(ap);
440 qc->err_mask |= __ac_err_mask(drv_stat); 440 qc->err_mask |= __ac_err_mask(drv_stat);
441 break; 441 break;
@@ -443,8 +443,9 @@ static void pdc_eng_timeout(struct ata_port *ap)
443 default: 443 default:
444 drv_stat = ata_busy_wait(ap, ATA_BUSY | ATA_DRQ, 1000); 444 drv_stat = ata_busy_wait(ap, ATA_BUSY | ATA_DRQ, 1000);
445 445
446 printk(KERN_ERR "ata%u: unknown timeout, cmd 0x%x stat 0x%x\n", 446 ata_port_printk(ap, KERN_ERR,
447 ap->id, qc->tf.command, drv_stat); 447 "unknown timeout, cmd 0x%x stat 0x%x\n",
448 qc->tf.command, drv_stat);
448 449
449 qc->err_mask |= ac_err_mask(drv_stat); 450 qc->err_mask |= ac_err_mask(drv_stat);
450 break; 451 break;