diff options
author | Andy Shevchenko | 2014-09-05 17:56:25 +0300 |
---|---|---|
committer | Greg Kroah-Hartman | 2014-09-23 22:15:18 -0700 |
commit | 7adce46784a0992eb7276416798db6746ba8f667 (patch) | |
tree | fc93babd9412ad7f29e94aa79f019ac1a869215a /drivers/usb/storage/sddr09.c | |
parent | 13d79f223ff369970f3c9b402035125dd3c9cc00 (diff) |
USB: storage: use %*ph specifier to dump small buffers
Instead of dereference each byte let's use %*ph specifier in the printk()
calls.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/storage/sddr09.c')
-rw-r--r-- | drivers/usb/storage/sddr09.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/storage/sddr09.c b/drivers/usb/storage/sddr09.c index 38a4504ce450..3847053d732c 100644 --- a/drivers/usb/storage/sddr09.c +++ b/drivers/usb/storage/sddr09.c @@ -1155,8 +1155,7 @@ sddr09_get_cardinfo(struct us_data *us, unsigned char flags) { return NULL; } - sprintf(blurbtxt, "sddr09: Found Flash card, ID = %02X %02X %02X %02X", - deviceID[0], deviceID[1], deviceID[2], deviceID[3]); + sprintf(blurbtxt, "sddr09: Found Flash card, ID = %4ph", deviceID); /* Byte 0 is the manufacturer */ sprintf(blurbtxt + strlen(blurbtxt), |