diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2016-07-27 16:37:21 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-07-28 10:04:06 -0700 |
commit | 178457e171bf1ae7a90a6b0aa6a404fec129e8c4 (patch) | |
tree | 5210eed291e91b6b7ad1017d1fcacd8fee0c4e04 /drivers/staging/greybus/es2.c | |
parent | fcba5d04c87c5c0174f159d26b295a46bfb6da58 (diff) |
greybus: es2: fix arpc error message
Add missing le16_to_cpu() to an ARPC error message in the receive path,
and also use %u to print the unsigned id.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/es2.c')
-rw-r--r-- | drivers/staging/greybus/es2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/es2.c b/drivers/staging/greybus/es2.c index 130549f9d74d..a22cb67a9076 100644 --- a/drivers/staging/greybus/es2.c +++ b/drivers/staging/greybus/es2.c @@ -1256,8 +1256,8 @@ static void arpc_in_callback(struct urb *urb) spin_lock_irqsave(&es2->arpc_lock, flags); rpc = arpc_find(es2, resp->id); if (!rpc) { - dev_err(dev, "invalid arpc response id received: %d\n", - resp->id); + dev_err(dev, "invalid arpc response id received: %u\n", + le16_to_cpu(resp->id)); spin_unlock_irqrestore(&es2->arpc_lock, flags); goto exit; } |