]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
greybus: loopback: Print error on data mismatch
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 14 Aug 2015 11:37:11 +0000 (17:07 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 14 Aug 2015 21:37:16 +0000 (14:37 -0700)
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>
drivers/staging/greybus/loopback.c

index 39ad4141ba8c2d4dae22e1d0897dc3e16210030b..3263d8351aa307fb077e818d10964b816c83f907 100644 (file)
@@ -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);