Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1662349 > unrolled thread

[PATCH v3 6/8] gpio: mockup: improve the error message

Started byBartosz Golaszewski <brgl@bgdev.pl>
First post2017-06-09 13:50 +0200
Last post2017-06-09 13:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v3 6/8] gpio: mockup: improve the error message Bartosz Golaszewski <brgl@bgdev.pl> - 2017-06-09 13:50 +0200

#1662349 — [PATCH v3 6/8] gpio: mockup: improve the error message

FromBartosz Golaszewski <brgl@bgdev.pl>
Date2017-06-09 13:50 +0200
Subject[PATCH v3 6/8] gpio: mockup: improve the error message
Message-ID<tQqAr-Yw-51@gated-at.bofh.it>
Indicate the error number and make the message a bit more elaborate.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
---
 drivers/gpio/gpio-mockup.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c
index ab2d38e..2f4fe41 100644
--- a/drivers/gpio/gpio-mockup.c
+++ b/drivers/gpio/gpio-mockup.c
@@ -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;
 		}
-- 
2.9.3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web