Commit e24d873d authored by Matthew Wilcox's avatar Matthew Wilcox Committed by James Bottomley

[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: default avatarMatthew Wilcox <matthew@wil.cx>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 6ea3c0b2
...@@ -1131,7 +1131,7 @@ int spi_print_msg(const unsigned char *msg) ...@@ -1131,7 +1131,7 @@ int spi_print_msg(const unsigned char *msg)
(int) msg[2]); (int) msg[2]);
switch (msg[2]) { switch (msg[2]) {
case EXTENDED_MODIFY_DATA_POINTER: 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]); (msg[4] << 16) | (msg[5] << 8) | msg[6]);
break; break;
case EXTENDED_SDTR: case EXTENDED_SDTR:
...@@ -1157,7 +1157,7 @@ int spi_print_msg(const unsigned char *msg) ...@@ -1157,7 +1157,7 @@ int spi_print_msg(const unsigned char *msg)
/* Normal One byte */ /* Normal One byte */
} else if (msg[0] < 0x1f) { } else if (msg[0] < 0x1f) {
if (msg[0] < ARRAY_SIZE(one_byte_msgs)) if (msg[0] < ARRAY_SIZE(one_byte_msgs))
printk(one_byte_msgs[msg[0]]); printk("%s ", one_byte_msgs[msg[0]]);
else else
printk("reserved (%02x) ", msg[0]); printk("reserved (%02x) ", msg[0]);
len = 1; len = 1;
...@@ -1171,7 +1171,7 @@ int spi_print_msg(const unsigned char *msg) ...@@ -1171,7 +1171,7 @@ int spi_print_msg(const unsigned char *msg)
msg[0], msg[1]); msg[0], msg[1]);
len = 2; len = 2;
} else } else
printk("reserved"); printk("reserved ");
return len; return len;
} }
EXPORT_SYMBOL(spi_print_msg); EXPORT_SYMBOL(spi_print_msg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment