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 <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Viresh Kumar 2015-08-15 08:54:18 +05:30 committed by Greg Kroah-Hartman
parent 1ab2e8918d
commit 4be6ea54d4

View file

@ -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;
}