Message ID | 1519719133-32646-1-git-send-email-dongsheng.wang@hxt-semitech.com |
---|---|
State | New |
Headers | show |
Series | [v2] gpiolib: friendly debug information for consumer | expand |
On Tue, Feb 27, 2018 at 9:12 AM, Wang Dongsheng <dongsheng.wang@hxt-semitech.com> wrote: > "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> Patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 14532d9576e4..d582ffc8e6fe 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -3630,7 +3630,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; }
"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> --- v2: 1. Change debug information. 2. Change patch's description. --- drivers/gpio/gpiolib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.16.2 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html