[PATCH 06/12] staging: nvec: use %*ph to dump small buffers

Julian Andres Klode jak at jak-linux.org
Fri Aug 3 10:40:46 UTC 2012


On Thu, Aug 02, 2012 at 07:05:46PM +0300, Andy Shevchenko wrote:
> Signed-off-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
> Cc: Julian Andres Klode <jak at jak-linux.org>
> Cc: Marc Dietrich <marvin24 at gmx.de>
> Cc: ac100 at lists.launchpad.net
> ---
>  drivers/staging/nvec/nvec.c |    3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c
> index 695ea35..3655d86 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;
>  	}
>  

Acked-by: Julian Andres Klode <jak at jak-linux.org>

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.



More information about the devel mailing list