Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andy Shevchenko and committed by
Greg Kroah-Hartman
021ad869 31fc518b

+3 -4
+3 -4
drivers/uwb/est.c
··· 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; ··· 452 453 if (size != -ENOENT) 453 454 goto out; 454 455 } 455 - dev_dbg(dev, "event 0x%02x/%04x/%02x: no handlers available; " 456 - "RCEB %02x %02x %02x %02x\n", 456 + dev_dbg(dev, 457 + "event 0x%02x/%04x/%02x: no handlers available; RCEB %4ph\n", 457 458 (unsigned) rceb->bEventType, 458 459 (unsigned) le16_to_cpu(rceb->wEvent), 459 460 (unsigned) rceb->bEventContext, 460 - ptr[0], ptr[1], ptr[2], ptr[3]); 461 + rceb); 461 462 size = -ENOENT; 462 463 out: 463 464 read_unlock_irqrestore(&uwb_est_lock, flags);