greybus: es2: fix arpc error message
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 27 Jul 2016 14:37:21 +0000 (16:37 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 28 Jul 2016 17:04:06 +0000 (10:04 -0700)
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>
drivers/staging/greybus/es2.c

index 130549f..a22cb67 100644 (file)
@@ -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;
        }