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:
parent
1ab2e8918d
commit
4be6ea54d4
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user