]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
gpio: mockup: improve the error message
authorBartosz Golaszewski <brgl@bgdev.pl>
Fri, 9 Jun 2017 11:41:30 +0000 (13:41 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 20 Jun 2017 07:19:05 +0000 (09:19 +0200)
Indicate the error number and make the message a bit more elaborate.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mockup.c

index ab2d38e491bc1f6109bfa2585796072164a61c5d..2f4fe4175dbf0152c0360d67127716a992b023ef 100644 (file)
@@ -373,8 +373,9 @@ static int gpio_mockup_probe(struct platform_device *pdev)
                }
 
                if (ret) {
-                       dev_err(dev, "gpio<%d..%d> add failed\n",
-                               base, base < 0 ? ngpio : base + ngpio);
+                       dev_err(dev,
+                               "adding gpiochip failed: %d (base: %d, ngpio: %d)\n",
+                               ret, base, base < 0 ? ngpio : base + ngpio);
 
                        return ret;
                }