diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2014-09-05 16:56:25 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-24 07:15:18 +0200 |
commit | 7adce46784a0992eb7276416798db6746ba8f667 (patch) | |
tree | fc93babd9412ad7f29e94aa79f019ac1a869215a /drivers/usb/storage/sddr09.c | |
parent | drivers/usb/host/ehci-xilinx-of.c: Include "linux/of_irq.h" to avoid compilin... (diff) | |
download | linux-7adce46784a0992eb7276416798db6746ba8f667.tar.xz linux-7adce46784a0992eb7276416798db6746ba8f667.zip |
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), |