OSDN Git Service

greybus: gpio: Print expected/actual payload size on mismatch
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 6 Aug 2015 07:14:51 +0000 (12:44 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 11 Aug 2015 00:28:30 +0000 (17:28 -0700)
commit782c3b732889b5fbce796a4b548d47a43e4d8c42
tree1764b98b67dea7b914e1e818fdd6b327424cacb3
parent7fea641c94d645bf30712cb6e6c498597c7e5634
greybus: gpio: Print expected/actual payload size on mismatch

Print (expected-payload-size actual-payload-size), when the size doesn't
match for requests received by the module. This gives more details
required for debugging the issue.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/gpio.c