Commit 021ad8694039545d69c19ca9bddc6f89b7469a61
Committed by
Greg Kroah-Hartman
1 parent
31fc518b94
Exists in
master
and in
20 other branches
uwb: use %*ph specifier to dump buffer
In kernel we have nice specifier %*ph to dump small buffers. Let's use it. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing 1 changed file with 3 additions and 4 deletions Side-by-side Diff
drivers/uwb/est.c
... | ... | @@ -436,7 +436,6 @@ |
436 | 436 | unsigned long flags; |
437 | 437 | unsigned itr; |
438 | 438 | u16 type_event_high, event; |
439 | - u8 *ptr = (u8 *) rceb; | |
440 | 439 | |
441 | 440 | read_lock_irqsave(&uwb_est_lock, flags); |
442 | 441 | size = -ENOSPC; |
443 | 442 | |
... | ... | @@ -453,12 +452,12 @@ |
453 | 452 | if (size != -ENOENT) |
454 | 453 | goto out; |
455 | 454 | } |
456 | - dev_dbg(dev, "event 0x%02x/%04x/%02x: no handlers available; " | |
457 | - "RCEB %02x %02x %02x %02x\n", | |
455 | + dev_dbg(dev, | |
456 | + "event 0x%02x/%04x/%02x: no handlers available; RCEB %4ph\n", | |
458 | 457 | (unsigned) rceb->bEventType, |
459 | 458 | (unsigned) le16_to_cpu(rceb->wEvent), |
460 | 459 | (unsigned) rceb->bEventContext, |
461 | - ptr[0], ptr[1], ptr[2], ptr[3]); | |
460 | + rceb); | |
462 | 461 | size = -ENOENT; |
463 | 462 | out: |
464 | 463 | read_unlock_irqrestore(&uwb_est_lock, flags); |