Skip to contentSkip to conversation

minor scsi_lib.c cleanup for 2.5.64

PATCH New Douglas Gilbert 1 participant 1 message Mar 9, 2003 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 minor scsi_lib.c cleanup for 2.5.64

The following patch made the trail in /var/log/messages a little easier to follow (for me). Just a cosmetic change.

Doug Gilbert

drivers/scsi/scsi_lib.c2564dpg renamed from drivers/scsi/scsi_lib.c +3 -3
@@ -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