From: Richard <h.vanberkum@chello.nl>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] [PATCH] drivers/block/acsi.c: Add KERN_* to printk statements
Date: Mon, 31 Jul 2006 00:22:38 +0000 [thread overview]
Message-ID: <20060731002238.GA10973@chello.nl> (raw)
Add KERN_* to printk statements
Signed-off-by: Richard van Berkum <h.vanberkum@chello.nl>
---
--- linux-2.6/drivers/block/acsi.c 2006-07-06 16:58:04.824452120 +0200
+++ mytree/drivers/block/acsi.c 2006-07-31 01:40:48.074139664 +0200
@@ -480,7 +480,7 @@
#ifdef NO_WRITE
if (rwflag || *cmd = 0x0a) {
- printk( "ACSI: Write commands disabled!\n" );
+ printk( KERN_INFO "ACSI: Write commands disabled!\n" );
return( 0 );
}
#endif
@@ -622,7 +622,7 @@
status = dma_wd.fdc_acces_seccount;
if (status != 0xff) break;
#ifdef DEBUG
- printk("ACSI: skipping 0xff status byte\n" );
+ printk( KERN_DEBUG "ACSI: skipping 0xff status byte\n" );
#endif
udelay(40);
acsi_wait_for_noIRQ( 20 );
@@ -972,7 +972,7 @@
block = CURRENT->sector;
if (block+CURRENT->nr_sectors >= get_capacity(disk)) {
#ifdef DEBUG
- printk( "%s: attempted access for blocks %d...%ld past end of device at block %ld.\n",
+ printk( KERN_DEBUG "%s: attempted access for blocks %d...%ld past end of device at block %ld.\n",
disk->disk_name,
block, block + CURRENT->nr_sectors - 1,
get_capacity(disk));
@@ -1305,7 +1305,7 @@
#ifdef DEBUG
{ int i;
- printk( "Mode sense data for ACSI target %d, lun %d seem not valid:",
+ printk( KERN_DEBUG "Mode sense data for ACSI target %d, lun %d seem not valid:",
target, lun );
for( i = 0; i < sizeof(SENSE_DATA); ++i )
printk( "%02x ", (unsigned char)acsi_buffer[i] );
@@ -1423,7 +1423,7 @@
if (!acsicmd_nodma(tur_cmd, 0)) {
/* timed out -> no device here */
#ifdef DEBUG_DETECT
- printk("target %d lun %d: timeout\n", aip->target, aip->lun);
+ printk( KERN_DEBUG "target %d lun %d: timeout\n", aip->target, aip->lun);
#endif
return DEV_NONE;
}
@@ -1470,7 +1470,7 @@
if (extsense != UNIT_ATTENTION &&
extsense != NOT_READY) {
#ifdef DEBUG_DETECT
- printk("target %d lun %d: extended sense %d\n",
+ printk( KERN_DEBUG "target %d lun %d: extended sense %d\n",
aip->target, aip->lun, extsense);
#endif
return DEV_UNKNOWN;
@@ -1479,7 +1479,7 @@
else {
if (reqsense & 0x7f) {
#ifdef DEBUG_DETECT
- printk("target %d lun %d: sense %d\n",
+ printk( KERN_DEBUG "target %d lun %d: sense %d\n",
aip->target, aip->lun, reqsense);
#endif
return DEV_UNKNOWN;
@@ -1489,7 +1489,7 @@
else
if (reqsense = 0x4) { /* SH204 Bug workaround */
#ifdef DEBUG_DETECT
- printk("target %d lun %d status=0 sense=4\n",
+ printk( KERN_DEBUG "target %d lun %d status=0 sense=4\n",
aip->target, aip->lun);
#endif
return DEV_UNKNOWN;
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
next reply other threads:[~2006-07-31 0:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-31 0:22 Richard [this message]
2006-07-31 5:38 ` [KJ] [PATCH] drivers/block/acsi.c: Add KERN_* to printk Domen Puncer
2006-07-31 9:57 ` h.vanberkum
2006-07-31 10:28 ` Domen Puncer
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=20060731002238.GA10973@chello.nl \
--to=h.vanberkum@chello.nl \
--cc=kernel-janitors@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.