greybus: operation: make incomplete-message errors more informative
authorJohan Hovold <johan@hovoldconsulting.com>
Fri, 27 Mar 2015 11:41:20 +0000 (12:41 +0100)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 30 Mar 2015 13:13:01 +0000 (15:13 +0200)
commit0150bd7f23618eb4feb293f4db007833555a887f
tree45ad41f0ee0a0843a018ace4e5359bc75a2f67ab
parente1baa3f0a956764816d0614fb3636ecc7230c171
greybus: operation: make incomplete-message errors more informative

Include the operation id as well as the received and expected size
(from header) when reporting incomplete messages.

This information is useful when debugging communication errors.

Also invert the size test to match the error message and increase
readability.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/operation.c