summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2025-01-01 17:31:27 +0100
committerSolomon Peachy <pizza@shaftnet.org>2025-01-01 20:48:03 -0500
commitd038aa47fef0238f4a4c24d0f533982fa0944f98 (patch)
treeab300389bbf14340f48feeb51da09787ada96e14
parent07036061fcf1e223a8e9558554056efd82ed89a2 (diff)
downloadrockbox-d038aa47fe.tar.gz
rockbox-d038aa47fe.zip
panicf: Add version info
Makes it easy to figure out the build from PANIC screens posted by someone Change-Id: Ic0e6fbb20b3d7b8caf35aedad48136bf3e914c2e
-rw-r--r--firmware/panic.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/panic.c b/firmware/panic.c
index 57ab549f59..358c9602ae 100644
--- a/firmware/panic.c
+++ b/firmware/panic.c
@@ -31,6 +31,7 @@
#include "power.h"
#include "system.h"
#include "logf.h"
+#include "rbversion.h"
#ifdef HAVE_RB_BACKTRACE
#include "gcc_extensions.h"
@@ -109,7 +110,7 @@ void panicf( const char *fmt, ...)
lcd_clear_display();
lcd_setfont(FONT_SYSFIXED);
- lcd_puts(1, y++, (unsigned char *)"*PANIC*");
+ lcd_puts(1, y++, (unsigned char *) "*PANIC* (" RBVERSION ")");
{
/* wrap panic line */
int i, len = strlen(panic_buf);
@@ -138,7 +139,7 @@ void panicf( const char *fmt, ...)
cpu_boost_unlock();
}
#endif /* HAVE_ADJUSTABLE_CPU_FREQ */
-
+
#ifdef HAVE_ATA_POWER_OFF
ide_power_enable(false);
#endif