From: Andy Shevchenko Date: Thu, 2 Aug 2012 16:05:46 +0000 (+0300) Subject: staging: nvec: use %*ph to dump small buffers X-Git-Tag: firefly_0821_release~3680^2~1977^2~959 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6a371978836049656525bb0719187362c5114232;p=firefly-linux-kernel-4.4.55.git staging: nvec: use %*ph to dump small buffers Signed-off-by: Andy Shevchenko Cc: ac100@lists.launchpad.net Acked-by: Julian Andres Klode Acked-By: Marc Dietrich Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c index 695ea35f75b0..3655d8639736 100644 --- a/drivers/staging/nvec/nvec.c +++ b/drivers/staging/nvec/nvec.c @@ -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; }