diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-08-15 08:54:18 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-08-18 09:31:07 -0700 |
commit | 4be6ea54d46166dcd8f7673b87b578c611577c29 (patch) | |
tree | 610ac2783816162fc5f99ab33a253d794bcab490 /drivers/staging/greybus/operation.c | |
parent | 1ab2e8918de583f7f98289448af6d8784a4c4ced (diff) |
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>
Diffstat (limited to 'drivers/staging/greybus/operation.c')
-rw-r--r-- | drivers/staging/greybus/operation.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |