lkml.org 
[lkml]   [2001]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] 2.5.1-pre4 scsi.c/scsi_lib.c
Patch to 2.5.1-pre4 fixes error in scsi_lib.c
and warnings in scsi.c.

I haven't seen these corrections yet...

~Randy


--- linux/drivers/scsi/scsi.c.org Fri Nov 30 11:50:11 2001
+++ linux/drivers/scsi/scsi.c Fri Nov 30 15:15:19 2001
@@ -2430,7 +2430,7 @@
for (SDpnt = shpnt->host_queue; SDpnt; SDpnt = SDpnt->next) {
for (SCpnt = SDpnt->device_queue; SCpnt; SCpnt = SCpnt->next) {
/* (0) h:c:t:l (dev sect nsect cnumsec sg) (ret all flg) (to/cmd to ito) cmd snse result %d %x */
- printk(KERN_INFO "(%3d) %2d:%1d:%2d:%2d (%6s %4ld %4ld %4ld %4x %1d) (%1d %1d 0x%2x) (%4d %4d %4d) 0x%2.2x 0x%2.2x 0x%8.8x\n",
+ printk(KERN_INFO "(%3d) %2d:%1d:%2d:%2d (%6s %4ld %4ld %4d %4x %1d) (%1d %1d 0x%2x) (%4d %4d %4d) 0x%2.2x 0x%2.2x 0x%8.8x\n",
i++,

SCpnt->host->host_no,
@@ -2476,12 +2476,12 @@
entry = queue_head->next;
do {
req = blkdev_entry_to_request(entry);
- printk("(%s %d %ld %ld %ld) ",
+ printk("(%s %d %lu %lu %u) ",
kdevname(req->rq_dev),
req->cmd,
req->sector,
req->nr_sectors,
- req->current_nr_sectors);
+ req->current_nr_sectors);
} while ((entry = entry->next) != queue_head);
printk("\n");
}
--- linux/drivers/scsi/scsi_lib.c.org Fri Nov 30 11:50:11 2001
+++ linux/drivers/scsi/scsi_lib.c Fri Nov 30 13:53:03 2001
@@ -582,7 +582,7 @@
*/
if (good_sectors > 0) {
SCSI_LOG_HLCOMPLETE(1, printk("%ld sectors total, %d sectors done.\n",
- req->nr_sectors good_sectors));
+ req->nr_sectors, good_sectors));
SCSI_LOG_HLCOMPLETE(1, printk("use_sg is %d\n ", SCpnt->use_sg));

req->errors = 0;
--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.025 / U:2.800 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site