From: Borislav Petkov <bbpetkov@yahoo.de>
To: linux-ide <linux-ide@vger.kernel.org>
Cc: Jeff Garzik <jgarzik@pobox.com>, Tejun Heo <htejun@gmail.com>
Subject: [PATCH 8/9] sata_sil24.c conversion
Date: Thu, 29 Jun 2006 18:10:31 +0200 [thread overview]
Message-ID: <20060629161031.GI23122@zmei.tnic> (raw)
Convert the sata-sil24.c to the new scheme.
Signed-off-by: <petkov@math.uni-muenster.de>
--- libata-dev/drivers/scsi/sata_sil24.c.orig 2006-06-29 16:43:10.000000000 +0200
+++ libata-dev/drivers/scsi/sata_sil24.c 2006-06-29 16:52:28.000000000 +0200
@@ -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
next reply other threads:[~2006-06-29 16:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-29 16:10 Borislav Petkov [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-06-30 6:50 [PATCH 8/9] sata_sil24.c conversion Borislav Petkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060629161031.GI23122@zmei.tnic \
--to=bbpetkov@yahoo.de \
--cc=htejun@gmail.com \
--cc=jgarzik@pobox.com \
--cc=linux-ide@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox