greybus: operation: Fix wrong order of arguments
authorViresh Kumar <viresh.kumar@linaro.org>
Sat, 15 Aug 2015 03:24:18 +0000 (08:54 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 18 Aug 2015 16:31:07 +0000 (09:31 -0700)
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>
drivers/staging/greybus/operation.c

index 0bb5b8d..f9b71e7 100644 (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;
        }