mirror of https://gitee.com/openkylin/linux.git
staging: nvec: use %*ph to dump small buffers
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: ac100@lists.launchpad.net Acked-by: Julian Andres Klode <jak@jak-linux.org> Acked-By: Marc Dietrich <marvin24@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
977310bbc3
commit
6a37197883
|
@ -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)
|
||||
{
|
||||
if ((msg->data[0] & 1 << 7) == 0 && msg->data[3]) {
|
||||
dev_err(nvec->dev, "ec responded %02x %02x %02x %02x\n",
|
||||
msg->data[0], msg->data[1], msg->data[2], msg->data[3]);
|
||||
dev_err(nvec->dev, "ec responded %*ph\n", 4, msg->data);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue