diff options
author | Tejun Heo <htejun@gmail.com> | 2006-05-15 07:57:56 -0400 |
---|---|---|
committer | Tejun Heo <htejun@gmail.com> | 2006-05-15 07:57:56 -0400 |
commit | f15a1dafed22d5037e0feea7528e1eeb28a1a7a3 (patch) | |
tree | 5bf5c98332036d62bd4cca3a104844faa318c712 /drivers/scsi/sata_sx4.c | |
parent | 61440db61fe4945ad9f7b32b4d6a22b17174aa1f (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_sx4.c')
-rw-r--r-- | drivers/scsi/sata_sx4.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/scsi/sata_sx4.c b/drivers/scsi/sata_sx4.c index a669d058988..96d7b73f5fd 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) | |||
868 | switch (qc->tf.protocol) { | 868 | switch (qc->tf.protocol) { |
869 | case ATA_PROT_DMA: | 869 | case ATA_PROT_DMA: |
870 | case ATA_PROT_NODATA: | 870 | case ATA_PROT_NODATA: |
871 | printk(KERN_ERR "ata%u: command timeout\n", ap->id); | 871 | ata_port_printk(ap, KERN_ERR, "command timeout\n"); |
872 | qc->err_mask |= __ac_err_mask(ata_wait_idle(ap)); | 872 | qc->err_mask |= __ac_err_mask(ata_wait_idle(ap)); |
873 | break; | 873 | break; |
874 | 874 | ||
875 | default: | 875 | default: |
876 | drv_stat = ata_busy_wait(ap, ATA_BUSY | ATA_DRQ, 1000); | 876 | drv_stat = ata_busy_wait(ap, ATA_BUSY | ATA_DRQ, 1000); |
877 | 877 | ||
878 | printk(KERN_ERR "ata%u: unknown timeout, cmd 0x%x stat 0x%x\n", | 878 | ata_port_printk(ap, KERN_ERR, |
879 | ap->id, qc->tf.command, drv_stat); | 879 | "unknown timeout, cmd 0x%x stat 0x%x\n", |
880 | qc->tf.command, drv_stat); | ||
880 | 881 | ||
881 | qc->err_mask |= ac_err_mask(drv_stat); | 882 | qc->err_mask |= ac_err_mask(drv_stat); |
882 | break; | 883 | break; |