summaryrefslogtreecommitdiffstats
path: root/firmware/panic.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/panic.c')
-rw-r--r--firmware/panic.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/panic.c b/firmware/panic.c
index 0d49847a19..3f01689922 100644
--- a/firmware/panic.c
+++ b/firmware/panic.c
@@ -30,6 +30,7 @@
#include "led.h"
#include "power.h"
#include "system.h"
+#include "logf.h"
#if defined(CPU_ARM)
#include "gcc_extensions.h"
@@ -115,6 +116,9 @@ void panicf( const char *fmt, ...)
#if defined(CPU_ARM)
backtrace(pc, sp, &y);
#endif
+#ifdef ROCKBOX_HAS_LOGF
+ logf_panic_dump(&y);
+#endif
#else
/* no LCD */
#endif