gpiolib: friendly debug information for consumer
authorWang Dongsheng <dongsheng.wang@hxt-semitech.com>
Tue, 27 Feb 2018 08:12:13 +0000 (00:12 -0800)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 2 Mar 2018 07:45:41 +0000 (08:45 +0100)
"failed" maybe makes observer confuse when a consumer can not
lookup, so change to a friendly information.

Signed-off-by: Wang Dongsheng <dongsheng.wang@hxt-semitech.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c

index d66de67..f220d84 100644 (file)
@@ -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;
        }