Skip to content

Commit

Permalink
[SCSI] Make spi_print_msg more consistent
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matthew Wilcox authored and James Bottomley committed Feb 28, 2006
1 parent 6ea3c0b commit e24d873
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/scsi/scsi_transport_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit e24d873

Please sign in to comment.