From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: linux-kernel@vger.kernel.org, torvalds@osdl.org
Subject: PATCH: fix invalid/illegal and printk formatting for scsi drivers
Date: Sun, 27 Jul 2003 21:12:49 +0100 [thread overview]
Message-ID: <200307272012.h6RKCn73029691@hraefn.swansea.linux.org.uk> (raw)
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.6.0-test2/drivers/scsi/53c7xx.c linux-2.6.0-test2-ac1/drivers/scsi/53c7xx.c
--- linux-2.6.0-test2/drivers/scsi/53c7xx.c 2003-07-27 19:56:25.000000000 +0100
+++ linux-2.6.0-test2-ac1/drivers/scsi/53c7xx.c 2003-07-27 20:24:26.000000000 +0100
@@ -4977,7 +4977,7 @@
hostdata->options |= OPTION_NO_PRINT_RACE;
}
} else {
- printk(KERN_ALERT "scsi%d : illegal instruction\n", host->host_no);
+ printk(KERN_ALERT "scsi%d : invalid instruction\n", host->host_no);
print_lots (host);
printk(KERN_ALERT " mail Richard@sleepie.demon.co.uk with ALL\n"
" boot messages and diagnostic output\n");
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.6.0-test2/drivers/scsi/aha152x.c linux-2.6.0-test2-ac1/drivers/scsi/aha152x.c
--- linux-2.6.0-test2/drivers/scsi/aha152x.c 2003-07-27 19:56:25.000000000 +0100
+++ linux-2.6.0-test2-ac1/drivers/scsi/aha152x.c 2003-07-27 20:24:40.000000000 +0100
@@ -3098,7 +3098,7 @@
printk("MESSAGE IN");
break;
default:
- printk("*illegal*");
+ printk("*invalid*");
break;
}
@@ -3467,7 +3467,7 @@
SPRINTF("MESSAGE IN");
break;
default:
- SPRINTF("*illegal*");
+ SPRINTF("*invalid*");
break;
}
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.6.0-test2/drivers/scsi/aha1542.c linux-2.6.0-test2-ac1/drivers/scsi/aha1542.c
--- linux-2.6.0-test2/drivers/scsi/aha1542.c 2003-07-27 19:56:25.000000000 +0100
+++ linux-2.6.0-test2-ac1/drivers/scsi/aha1542.c 2003-07-27 20:24:40.000000000 +0100
@@ -67,7 +67,7 @@
int nseg,
int badseg)
{
- printk(KERN_CRIT "sgpnt[%d:%d] page %p/0x%x length %ld\n",
+ printk(KERN_CRIT "sgpnt[%d:%d] page %p/0x%x length %u\n",
badseg, nseg,
page_address(sgpnt[badseg].page) + sgpnt[badseg].offset,
SCSI_SG_PA(&sgpnt[badseg]),
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.6.0-test2/drivers/scsi/aic7xxx/aic7770.c linux-2.6.0-test2-ac1/drivers/scsi/aic7xxx/aic7770.c
--- linux-2.6.0-test2/drivers/scsi/aic7xxx/aic7770.c 2003-07-10 21:15:34.000000000 +0100
+++ linux-2.6.0-test2-ac1/drivers/scsi/aic7xxx/aic7770.c 2003-07-15 18:01:30.000000000 +0100
@@ -170,7 +170,7 @@
case 15:
break;
default:
- printf("aic7770_config: illegal irq setting %d\n", intdef);
+ printf("aic7770_config: invalid irq setting %d\n", intdef);
return (ENXIO);
}
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.6.0-test2/drivers/scsi/AM53C974.c linux-2.6.0-test2-ac1/drivers/scsi/AM53C974.c
--- linux-2.6.0-test2/drivers/scsi/AM53C974.c 2003-07-27 19:56:25.000000000 +0100
+++ linux-2.6.0-test2-ac1/drivers/scsi/AM53C974.c 2003-07-27 20:24:26.000000000 +0100
@@ -598,7 +598,7 @@
(ints[1] == ints[2]) ||
(ints[3] < (DEF_CLK / MAX_PERIOD)) || (ints[3] > (DEF_CLK / MIN_PERIOD)) ||
(ints[4] < 0) || (ints[4] > MAX_OFFSET))
- printk("AM53C974_setup: illegal parameter\n");
+ printk("AM53C974_setup: invalid parameter\n");
else {
overrides[commandline_current].host_scsi_id = ints[1];
overrides[commandline_current].target_scsi_id = ints[2];
reply other threads:[~2003-07-28 1:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200307272012.h6RKCn73029691@hraefn.swansea.linux.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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;
as well as URLs for NNTP newsgroup(s).