diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-08-14 17:07:11 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-08-14 14:37:16 -0700 |
commit | dc366f8e397c41ba582821e24abdc2bc4ae80a47 (patch) | |
tree | aaf62a1d46efc95a9595fa45dff1b54dc7f26823 /drivers | |
parent | dc4a10693f3f0e6658b06dd1947643637c0476a4 (diff) |
greybus: loopback: Print error on data mismatch
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Bryan O'Donoghue <bryan.odnoghue@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/greybus/loopback.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c index 39ad4141ba8c..3263d8351aa3 100644 --- a/drivers/staging/greybus/loopback.c +++ b/drivers/staging/greybus/loopback.c @@ -287,8 +287,10 @@ static int gb_loopback_transfer(struct gb_loopback *gb, u32 len) if (retval) goto gb_error; - if (memcmp(request->data, response->data, len)) + if (memcmp(request->data, response->data, len)) { + pr_info("%s: Loopback Data doesn't match\n", __func__); retval = -EREMOTEIO; + } gb_error: kfree(request); |