Commit 6a371978 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Greg Kroah-Hartman

staging: nvec: use %*ph to dump small buffers

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: ac100@lists.launchpad.net
Acked-by: default avatarJulian Andres Klode <jak@jak-linux.org>
Acked-By: default avatarMarc Dietrich <marvin24@gmx.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 977310bb
...@@ -366,8 +366,7 @@ static void nvec_request_master(struct work_struct *work) ...@@ -366,8 +366,7 @@ static void nvec_request_master(struct work_struct *work)
static int parse_msg(struct nvec_chip *nvec, struct nvec_msg *msg) static int parse_msg(struct nvec_chip *nvec, struct nvec_msg *msg)
{ {
if ((msg->data[0] & 1 << 7) == 0 && msg->data[3]) { if ((msg->data[0] & 1 << 7) == 0 && msg->data[3]) {
dev_err(nvec->dev, "ec responded %02x %02x %02x %02x\n", dev_err(nvec->dev, "ec responded %*ph\n", 4, msg->data);
msg->data[0], msg->data[1], msg->data[2], msg->data[3]);
return -EINVAL; return -EINVAL;
} }
......
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