summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_transport_spi.c
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew@wil.cx>2006-02-07 16:05:26 +0100
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-02-28 05:55:10 +0100
commite24d873d250f9999ad3703f220e3759c1fb70998 (patch)
treec35506de006417b827bbaf62fc0e532df6ad39b3 /drivers/scsi/scsi_transport_spi.c
parent[SCSI] Add spi_populate_*_msg functions (diff)
downloadlinux-e24d873d250f9999ad3703f220e3759c1fb70998.tar.xz
linux-e24d873d250f9999ad3703f220e3759c1fb70998.zip
[SCSI] Make spi_print_msg more consistent
Almost all the output from spi_print_msg() has a trailing space. This patch fixes up the three cases that don't. Signed-off-by: Matthew Wilcox <matthew@wil.cx> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/scsi_transport_spi.c')
-rw-r--r--drivers/scsi/scsi_transport_spi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/scsi_transport_spi.c b/drivers/scsi/scsi_transport_spi.c
index c0051a432a97..653f165d65ff 100644
--- a/drivers/scsi/scsi_transport_spi.c
+++ b/drivers/scsi/scsi_transport_spi.c
@@ -1131,7 +1131,7 @@ int spi_print_msg(const unsigned char *msg)
(int) msg[2]);
switch (msg[2]) {
case EXTENDED_MODIFY_DATA_POINTER:
- printk("pointer = %d", (int) (msg[3] << 24) |
+ printk("pointer = %d ", (msg[3] << 24) |
(msg[4] << 16) | (msg[5] << 8) | msg[6]);
break;
case EXTENDED_SDTR:
@@ -1157,7 +1157,7 @@ int spi_print_msg(const unsigned char *msg)
/* Normal One byte */
} else if (msg[0] < 0x1f) {
if (msg[0] < ARRAY_SIZE(one_byte_msgs))
- printk(one_byte_msgs[msg[0]]);
+ printk("%s ", one_byte_msgs[msg[0]]);
else
printk("reserved (%02x) ", msg[0]);
len = 1;
@@ -1171,7 +1171,7 @@ int spi_print_msg(const unsigned char *msg)
msg[0], msg[1]);
len = 2;
} else
- printk("reserved");
+ printk("reserved ");
return len;
}
EXPORT_SYMBOL(spi_print_msg);