Commit 021ad869 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Greg Kroah-Hartman

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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 31fc518b
...@@ -436,7 +436,6 @@ ssize_t uwb_est_find_size(struct uwb_rc *rc, const struct uwb_rceb *rceb, ...@@ -436,7 +436,6 @@ ssize_t uwb_est_find_size(struct uwb_rc *rc, const struct uwb_rceb *rceb,
unsigned long flags; unsigned long flags;
unsigned itr; unsigned itr;
u16 type_event_high, event; u16 type_event_high, event;
u8 *ptr = (u8 *) rceb;
read_lock_irqsave(&uwb_est_lock, flags); read_lock_irqsave(&uwb_est_lock, flags);
size = -ENOSPC; size = -ENOSPC;
...@@ -453,12 +452,12 @@ ssize_t uwb_est_find_size(struct uwb_rc *rc, const struct uwb_rceb *rceb, ...@@ -453,12 +452,12 @@ ssize_t uwb_est_find_size(struct uwb_rc *rc, const struct uwb_rceb *rceb,
if (size != -ENOENT) if (size != -ENOENT)
goto out; goto out;
} }
dev_dbg(dev, "event 0x%02x/%04x/%02x: no handlers available; " dev_dbg(dev,
"RCEB %02x %02x %02x %02x\n", "event 0x%02x/%04x/%02x: no handlers available; RCEB %4ph\n",
(unsigned) rceb->bEventType, (unsigned) rceb->bEventType,
(unsigned) le16_to_cpu(rceb->wEvent), (unsigned) le16_to_cpu(rceb->wEvent),
(unsigned) rceb->bEventContext, (unsigned) rceb->bEventContext,
ptr[0], ptr[1], ptr[2], ptr[3]); rceb);
size = -ENOENT; size = -ENOENT;
out: out:
read_unlock_irqrestore(&uwb_est_lock, flags); read_unlock_irqrestore(&uwb_est_lock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment