Skip to contentSkip to conversation

sata_sil24.c conversion

PATCH New Borislav Petkov 1 participant 1 message Jun 30, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 8/9 sata_sil24.c conversion

Convert the sata-sil24.c to the new scheme.

Signed-off-by <[email protected]>
drivers/scsi/sata_sil24.c +8 -6
index b5f8fa9..ec1a7f3 100644
@@ -535,10 +535,12 @@ static int sil24_softreset(struct ata_po
 	u32 mask, irq_stat;
 	const char *reason;
 
-	DPRINTK("ENTER\n");
+	ata_port_printk(ap, ATA_MSG_TRACE, "%s: ENTER\n", __FUNCTION__);
 
 	if (ata_port_offline(ap)) {
-		DPRINTK("PHY reports no device\n");
+		ata_port_printk(ap, ATA_MSG_VDEBUG, 
+				"%s: PHY reports no device\n",
+				__FUNCTION__);
 		*class = ATA_DEV_NONE;
 		goto out;
 	}
@@ -578,11 +580,11 @@ static int sil24_softreset(struct ata_po
 		*class = ATA_DEV_NONE;
 
  out:
-	DPRINTK("EXIT, class=%u\n", *class);
+	ata_port_printk(ap, ATA_MSG_TRACE, "%s: EXIT, class=%u\n", __FUNCTION__, *class);
 	return 0;
 
  err:
-	ata_port_printk(ap, KERN_ERR, "softreset failed (%s)\n", reason);
+	ata_port_printk(ap, ATA_MSG_ERR, "softreset failed (%s)\n", reason);
 	return -EIO;
 }
 
@@ -629,7 +631,7 @@ static int sil24_hardreset(struct ata_po
 	return -EAGAIN;
 
  err:
-	ata_port_printk(ap, KERN_ERR, "hardreset failed (%s)\n", reason);
+	ata_port_printk(ap, ATA_MSG_ERR, "hardreset failed (%s)\n", reason);
 	return -EIO;
 }
 
@@ -854,7 +856,7 @@ static inline void sil24_host_intr(struc
 	}
 
 	if (ata_ratelimit())
-		ata_port_printk(ap, KERN_INFO, "spurious interrupt "
+		ata_port_printk(ap, ATA_MSG_INFO, "spurious interrupt "
 			"(slot_stat 0x%x active_tag %d sactive 0x%x)\n",
 			slot_stat, ap->active_tag, ap->sactive);
 }

___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de