From 37d4cc3ddde52b60a20abda65b50fa5a9379b9af Mon Sep 17 00:00:00 2001 From: hgn Date: Thu, 3 Jul 2025 17:18:19 +0100 Subject: [PATCH] include some of the log too with crash file --- vg_log.c | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/vg_log.c b/vg_log.c index 9b674d4..e90d73d 100644 --- a/vg_log.c +++ b/vg_log.c @@ -257,7 +257,7 @@ void vg_fatal_exit( const char *comment ) vg_strcat( &line, "OS: GNU/Linux\n" "Comment: " ); vg_strcat( &line, comment ); - vg_strcat( &line, "\nStack trace\n" + vg_strcat( &line, "\n\nStack trace\n" "-----------------------------------\n" ); vg_str_flushfd( &line, fd ); void *functions[20]; @@ -265,6 +265,40 @@ void vg_fatal_exit( const char *comment ) backtrace_symbols_fd( functions, count, fd ); #endif + vg_strcat( &line, "\n\nVG Console log\n" + "-----------------------------------\n" ); + + int ptr = vg_log.log_line_current; + for( int i=0; i= vg_log.log_line_count ) + ptr = 0; + + bool vt=0; + for( u32 j=0; j