Skip to contentSkip to conversation

led-class.c: quiet boot messages

PATCH Applied H Hartley Sweeten 2 participants 2 messages Jan 6, 2010 – Jan 18, 2010 LED

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 led-class.c: quiet boot messages

led-class.c: quiet boot messages

As each led device gets registered a kernel message gets printed. In an embedded system with a number of leds this can produce a lot of output that just looks like noise.

Change the message type to KERN_DEBUG since it might be useful in the dmesg output "after" booting.

---

drivers/leds/led-class.c +1 -1
index 782f958..349e073 100644
@@ -164,7 +164,7 @@ int led_classdev_register(struct device *parent, struct led_classdev *led_cdev)
 	led_trigger_set_default(led_cdev);
 #endif
 
-	printk(KERN_INFO "Registered led device: %s\n",
+	printk(KERN_DEBUG "Registered led device: %s\n",
 			led_cdev->name);
 
 	return 0;
#1 lore raw
Quoted 8 lines · H Hartley Sweeten

led-class.c: quiet boot messages

As each led device gets registered a kernel message gets printed. In an embedded system with a number of leds this can produce a lot of output that just looks like noise.

Change the message type to KERN_DEBUG since it might be useful in the dmesg output "after" booting.

Queued in the LED tree, thanks.

Richard

Signature · 2 lines
Richard Purdie
Intel Open Source Technology Centre