* PATCH: fix invalid/illegal and printk formatting for scsi drivers
@ 2003-07-27 20:12 Alan Cox
0 siblings, 0 replies; only message in thread
From: Alan Cox @ 2003-07-27 20:12 UTC (permalink / raw)
To: linux-kernel, torvalds
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];
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-07-28 1:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-27 20:12 PATCH: fix invalid/illegal and printk formatting for scsi drivers Alan Cox
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).