From d038aa47fef0238f4a4c24d0f533982fa0944f98 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Wed, 1 Jan 2025 17:31:27 +0100 Subject: [PATCH] panicf: Add version info Makes it easy to figure out the build from PANIC screens posted by someone Change-Id: Ic0e6fbb20b3d7b8caf35aedad48136bf3e914c2e --- firmware/panic.c | 5 +++-- 1 file 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