From: Viresh Kumar Date: Fri, 14 Aug 2015 11:37:11 +0000 (+0530) Subject: greybus: loopback: Print error on data mismatch X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dc366f8e397c41ba582821e24abdc2bc4ae80a47;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git greybus: loopback: Print error on data mismatch Signed-off-by: Viresh Kumar Reviewed-by: Bryan O'Donoghue Signed-off-by: Greg Kroah-Hartman --- 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);