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