All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Change scsi send/completion logging back to terser output
@ 2005-01-25 21:51 Patrick Mansfield
  0 siblings, 0 replies; only message in thread
From: Patrick Mansfield @ 2005-01-25 21:51 UTC (permalink / raw)
  To: James Bottomley, linux-scsi

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 <patmans@us.ibm.com>

diff -uprN -X /home/patman/dontdiff scsi-rc-fix-2.6.11-rc2/drivers/scsi/constants.c terser-cmd/drivers/scsi/constants.c
--- scsi-rc-fix-2.6.11-rc2/drivers/scsi/constants.c	Tue Jan 25 12:26:21 2005
+++ terser-cmd/drivers/scsi/constants.c	Tue Jan 25 12:27:38 2005
@@ -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
diff -uprN -X /home/patman/dontdiff scsi-rc-fix-2.6.11-rc2/drivers/scsi/scsi.c terser-cmd/drivers/scsi/scsi.c
--- scsi-rc-fix-2.6.11-rc2/drivers/scsi/scsi.c	Tue Jan 25 11:08:54 2005
+++ terser-cmd/drivers/scsi/scsi.c	Tue Jan 25 11:11:31 2005
@@ -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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-25 21:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-25 21:51 [PATCH] Change scsi send/completion logging back to terser output Patrick Mansfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.