mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
fcba5d04c8
commit
178457e171
|
@ -1256,8 +1256,8 @@ static void arpc_in_callback(struct urb *urb)
|
||||||
spin_lock_irqsave(&es2->arpc_lock, flags);
|
spin_lock_irqsave(&es2->arpc_lock, flags);
|
||||||
rpc = arpc_find(es2, resp->id);
|
rpc = arpc_find(es2, resp->id);
|
||||||
if (!rpc) {
|
if (!rpc) {
|
||||||
dev_err(dev, "invalid arpc response id received: %d\n",
|
dev_err(dev, "invalid arpc response id received: %u\n",
|
||||||
resp->id);
|
le16_to_cpu(resp->id));
|
||||||
spin_unlock_irqrestore(&es2->arpc_lock, flags);
|
spin_unlock_irqrestore(&es2->arpc_lock, flags);
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue