1
0
Fork 0
forked from len0rd/rockbox

panicf: Add version info

Makes it easy to figure out the build
from PANIC screens posted by someone

Change-Id: Ic0e6fbb20b3d7b8caf35aedad48136bf3e914c2e
This commit is contained in:
Christian Soffke 2025-01-01 17:31:27 +01:00 committed by Solomon Peachy
parent 07036061fc
commit d038aa47fe

View file

@ -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