diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2010-12-18 14:37:39 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-12-20 09:57:35 +0100 |
commit | 32558d1ae5ae15a8e417e9640daf0b7e2e01964f (patch) | |
tree | c9cfde824ac862292ff44aaf9fd830d0014c11fe /lib/vsprintf.c | |
parent | 91d781f51df5d4de23d09a6777bfc968a0a7ca68 (diff) | |
download | barebox-32558d1ae5ae15a8e417e9640daf0b7e2e01964f.tar.gz barebox-32558d1ae5ae15a8e417e9640daf0b7e2e01964f.tar.xz |
LED: Add LED trigger support
This patch allows to associate LEDs with certain triggers, such
as heartbeat or network activity.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib/vsprintf.c')
-rw-r--r-- | lib/vsprintf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index e2ea84d6b6..fec87bac0b 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -17,6 +17,7 @@ #include <malloc.h> #include <common.h> +#include <led.h> #include <reloc.h> unsigned long simple_strtoul(const char *cp,char **endp,unsigned int base) @@ -625,6 +626,9 @@ void __noreturn panic(const char *fmt, ...) vprintf(fmt, args); putchar('\n'); va_end(args); + + led_trigger(LED_TRIGGER_PANIC, TRIGGER_ENABLE); + #if defined (CONFIG_PANIC_HANG) hang(); #else |