From: Viresh Kumar Date: Sat, 15 Aug 2015 03:24:18 +0000 (+0530) Subject: greybus: operation: Fix wrong order of arguments X-Git-Tag: Ubuntu-4.9.0-1.2~749^2~378^2~21^2~1268 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=4be6ea54d46166dcd8f7673b87b578c611577c29;p=mirror_ubuntu-zesty-kernel.git greybus: operation: Fix wrong order of arguments The order of arguments is wrong and that shows up as a warning only on 64 bit machines. Fixes: cb0ef0c019ab ("operation: print message type on errors") Signed-off-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/operation.c b/drivers/staging/greybus/operation.c index 0bb5b8d9cb3b..f9b71e79b4c4 100644 --- a/drivers/staging/greybus/operation.c +++ b/drivers/staging/greybus/operation.c @@ -869,7 +869,7 @@ static void gb_connection_recv_response(struct gb_connection *connection, message_size = sizeof(*message->header) + message->payload_size; if (!errno && size != message_size) { dev_err(&connection->dev, "bad message (0x%02hhx) size (%zu != %zu)\n", - size, message_size, message->header->type); + message->header->type, size, message_size); errno = -EMSGSIZE; }