Skip to contentSkip to conversation

Change scsi send/completion logging back to terser output

PATCH New Patrick Mansfield 1 participant 1 message Jan 25, 2005 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Change scsi send/completion logging back to terser output

Patch against latest scsi rc fixes.

Change scsi send/completion logging back to terser output:

print_command was renamed __scsi_print_command, but two print_command calls were renamed to scsi_print_command rather than __scsi_print_command.

__scsi_print_command at one time did not print KERN_INFO prefix, change it back to not print it.

Signed off by: Patrick Mansfield <[email protected]>

drivers/scsi/constants.c +1 -1
diff -uprN -X /home/patman/dontdiff scsi-rc-fix-2.6.11-rc2/drivers/scsi/constants.c terser-cmd/drivers/scsi/constants.c
@@ -342,7 +342,7 @@ void __scsi_print_command(unsigned char 
 {
 	int k, len;
 
-	print_opcode_name(command, 0, 1);
+	print_opcode_name(command, 0, 0);
 	if (VARIABLE_LENGTH_CMD == command[0])
 		len = command[7] + 8;
 	else
drivers/scsi/scsi.c +2 -2
diff -uprN -X /home/patman/dontdiff scsi-rc-fix-2.6.11-rc2/drivers/scsi/scsi.c terser-cmd/drivers/scsi/scsi.c
@@ -424,7 +424,7 @@ void scsi_log_send(struct scsi_cmnd *cmd
 			 * output in scsi_log_completion.
 			 */
 			printk("                 ");
-			scsi_print_command(cmd);
+			__scsi_print_command(cmd);
 			if (level > 3) {
 				printk(KERN_INFO "buffer = 0x%p, bufflen = %d,"
 				       " done = 0x%p, queuecommand 0x%p\n",
@@ -492,7 +492,7 @@ void scsi_log_completion(struct scsi_cmn
 				printk("UNKNOWN");
 			}
 			printk(" %8x ", cmd->result);
-			scsi_print_command(cmd);
+			__scsi_print_command(cmd);
 			if (status_byte(cmd->result) & CHECK_CONDITION) {
 				/*
 				 * XXX The print_sense formatting/prefix