diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-05-28 05:54:17 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-03 17:33:26 -0400 |
commit | 021ad8694039545d69c19ca9bddc6f89b7469a61 (patch) | |
tree | ee15f10de46a5ef0eec5c4151b9b7edb7bc8c43d /drivers/uwb | |
parent | 31fc518b94e93d1215b70f9f78d9491ce77cba86 (diff) |
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>
Diffstat (limited to 'drivers/uwb')
-rw-r--r-- | drivers/uwb/est.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/uwb/est.c b/drivers/uwb/est.c index 86ed7e61e597..457f31d99bf4 100644 --- a/drivers/uwb/est.c +++ b/drivers/uwb/est.c | |||
@@ -436,7 +436,6 @@ ssize_t uwb_est_find_size(struct uwb_rc *rc, const struct uwb_rceb *rceb, | |||
436 | unsigned long flags; | 436 | unsigned long flags; |
437 | unsigned itr; | 437 | unsigned itr; |
438 | u16 type_event_high, event; | 438 | u16 type_event_high, event; |
439 | u8 *ptr = (u8 *) rceb; | ||
440 | 439 | ||
441 | read_lock_irqsave(&uwb_est_lock, flags); | 440 | read_lock_irqsave(&uwb_est_lock, flags); |
442 | size = -ENOSPC; | 441 | size = -ENOSPC; |
@@ -453,12 +452,12 @@ ssize_t uwb_est_find_size(struct uwb_rc *rc, const struct uwb_rceb *rceb, | |||
453 | if (size != -ENOENT) | 452 | if (size != -ENOENT) |
454 | goto out; | 453 | goto out; |
455 | } | 454 | } |
456 | dev_dbg(dev, "event 0x%02x/%04x/%02x: no handlers available; " | 455 | dev_dbg(dev, |
457 | "RCEB %02x %02x %02x %02x\n", | 456 | "event 0x%02x/%04x/%02x: no handlers available; RCEB %4ph\n", |
458 | (unsigned) rceb->bEventType, | 457 | (unsigned) rceb->bEventType, |
459 | (unsigned) le16_to_cpu(rceb->wEvent), | 458 | (unsigned) le16_to_cpu(rceb->wEvent), |
460 | (unsigned) rceb->bEventContext, | 459 | (unsigned) rceb->bEventContext, |
461 | ptr[0], ptr[1], ptr[2], ptr[3]); | 460 | rceb); |
462 | size = -ENOENT; | 461 | size = -ENOENT; |
463 | out: | 462 | out: |
464 | read_unlock_irqrestore(&uwb_est_lock, flags); | 463 | read_unlock_irqrestore(&uwb_est_lock, flags); |