From: Sakari Ailus Date: Thu, 26 Mar 2015 23:42:05 +0000 (-0700) Subject: leds: Use log level warn instead of info when telling about a name clash X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=6f06c7f87cf54fa0fa6f95963d7c0d436eb56f43;p=deliverable%2Flinux.git leds: Use log level warn instead of info when telling about a name clash The LED names are expected to be unique in the system. Use KERN_WARNING log level to notify the user about the matter. Signed-off-by: Sakari Ailus Signed-off-by: Bryan Wu Signed-off-by: Ricardo Ribalda Delgado --- diff --git a/drivers/leds/led-class.c b/drivers/leds/led-class.c index fc57d9c2e6ad..82e3844c185c 100644 --- a/drivers/leds/led-class.c +++ b/drivers/leds/led-class.c @@ -257,7 +257,7 @@ int led_classdev_register(struct device *parent, struct led_classdev *led_cdev) return PTR_ERR(led_cdev->dev); if (ret) - dev_info(parent, "Led %s renamed to %s due to name collision", + dev_warn(parent, "Led %s renamed to %s due to name collision", led_cdev->name, dev_name(led_cdev->dev)); #ifdef CONFIG_LEDS_TRIGGERS