* [PATCH] minor scsi_lib.c cleanup for 2.5.64
@ 2003-03-09 13:31 Douglas Gilbert
0 siblings, 0 replies; only message in thread
From: Douglas Gilbert @ 2003-03-09 13:31 UTC (permalink / raw)
To: linux-scsi
[-- Attachment #1: Type: text/plain, Size: 130 bytes --]
The following patch made the trail in /var/log/messages
a little easier to follow (for me). Just a cosmetic change.
Doug Gilbert
[-- Attachment #2: scsi_lib_2564dpg.diff --]
[-- Type: text/plain, Size: 1113 bytes --]
--- linux/drivers/scsi/scsi_lib.c 2003-03-01 12:23:04.000000000 +1000
+++ linux/drivers/scsi/scsi_lib.c2564dpg 2003-03-09 21:05:27.000000000 +1000
@@ -812,7 +812,7 @@
cmd->device->host->host_no, (int) cmd->device->channel,
(int) cmd->device->id, (int) cmd->device->lun);
print_command(cmd->data_cmnd);
- print_sense("sd", cmd);
+ print_sense("", cmd);
cmd = scsi_end_request(cmd, 0, block_sectors, 1);
return;
default:
@@ -832,7 +832,7 @@
struct Scsi_Device_Template *sdt;
sdt = scsi_get_request_dev(cmd->request);
- printk("SCSI %s error : host %d channel %d id %d lun %d return code = %x\n",
+ printk("SCSI %s error : <%d %d %d %d> return code = 0x%x\n",
(sdt ? sdt->name : "device"),
cmd->device->host->host_no,
cmd->device->channel,
@@ -840,7 +840,7 @@
cmd->device->lun, result);
if (driver_byte(result) & DRIVER_SENSE)
- print_sense("sd", cmd);
+ print_sense("", cmd);
/*
* Mark a single buffer as not uptodate. Queue the remainder.
* We sometimes get this cruft in the event that a medium error
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-09 13:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-09 13:31 [PATCH] minor scsi_lib.c cleanup for 2.5.64 Douglas Gilbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox