Skip to content

Commit 021ad86

Browse files
andy-shevgregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 31fc518 commit 021ad86

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

drivers/uwb/est.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,6 @@ ssize_t uwb_est_find_size(struct uwb_rc *rc, const struct uwb_rceb *rceb,
436436
unsigned long flags;
437437
unsigned itr;
438438
u16 type_event_high, event;
439-
u8 *ptr = (u8 *) rceb;
440439

441440
read_lock_irqsave(&uwb_est_lock, flags);
442441
size = -ENOSPC;
@@ -453,12 +452,12 @@ ssize_t uwb_est_find_size(struct uwb_rc *rc, const struct uwb_rceb *rceb,
453452
if (size != -ENOENT)
454453
goto out;
455454
}
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",
458457
(unsigned) rceb->bEventType,
459458
(unsigned) le16_to_cpu(rceb->wEvent),
460459
(unsigned) rceb->bEventContext,
461-
ptr[0], ptr[1], ptr[2], ptr[3]);
460+
rceb);
462461
size = -ENOENT;
463462
out:
464463
read_unlock_irqrestore(&uwb_est_lock, flags);

0 commit comments

Comments
 (0)