summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sata_sx4.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-05-15 13:57:56 +0200
committerTejun Heo <htejun@gmail.com>2006-05-15 13:57:56 +0200
commitf15a1dafed22d5037e0feea7528e1eeb28a1a7a3 (patch)
tree5bf5c98332036d62bd4cca3a104844faa318c712 /drivers/scsi/sata_sx4.c
parent[PATCH] libata: implement ATA printk helpers (diff)
downloadlinux-f15a1dafed22d5037e0feea7528e1eeb28a1a7a3.tar.xz
linux-f15a1dafed22d5037e0feea7528e1eeb28a1a7a3.zip
[PATCH] libata: use ATA printk helpers
Use ATA printk helpers. Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'drivers/scsi/sata_sx4.c')
-rw-r--r--drivers/scsi/sata_sx4.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/scsi/sata_sx4.c b/drivers/scsi/sata_sx4.c
index a669d0589889..96d7b73f5fdc 100644
--- a/drivers/scsi/sata_sx4.c
+++ b/drivers/scsi/sata_sx4.c
@@ -868,15 +868,16 @@ static void pdc_eng_timeout(struct ata_port *ap)
switch (qc->tf.protocol) {
case ATA_PROT_DMA:
case ATA_PROT_NODATA:
- printk(KERN_ERR "ata%u: command timeout\n", ap->id);
+ ata_port_printk(ap, KERN_ERR, "command timeout\n");
qc->err_mask |= __ac_err_mask(ata_wait_idle(ap));
break;
default:
drv_stat = ata_busy_wait(ap, ATA_BUSY | ATA_DRQ, 1000);
- printk(KERN_ERR "ata%u: unknown timeout, cmd 0x%x stat 0x%x\n",
- ap->id, qc->tf.command, drv_stat);
+ ata_port_printk(ap, KERN_ERR,
+ "unknown timeout, cmd 0x%x stat 0x%x\n",
+ qc->tf.command, drv_stat);
qc->err_mask |= ac_err_mask(drv_stat);
break;