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>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
13d79f223f
commit
7adce46784
@@ -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),
|
||||
|
Reference in New Issue
Block a user