From: Wang Dongsheng Date: Tue, 27 Feb 2018 08:12:13 +0000 (-0800) Subject: gpiolib: friendly debug information for consumer X-Git-Tag: for-linus-20180413~37^2~44 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=9d5a1f2ca6618bffd79c834d3e090a086fe35e6a;p=linux-block.git gpiolib: friendly debug information for consumer "failed" maybe makes observer confuse when a consumer can not lookup, so change to a friendly information. Signed-off-by: Wang Dongsheng Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index d66de67ef307..f220d844b607 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -3689,7 +3689,7 @@ struct gpio_desc *__must_check gpiod_get_index(struct device *dev, } if (IS_ERR(desc)) { - dev_dbg(dev, "lookup for GPIO %s failed\n", con_id); + dev_dbg(dev, "No GPIO consumer %s found\n", con_id); return desc; }