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 d66de67ef307cef79a03fae9fb586fb3f55be0bf..f220d844b60778caa505e21f11f75122009531e3 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;
        }