Add CPU arch to short fault info

This commit is contained in:
Konstantin Bogdanov 2024-08-28 17:54:42 +02:00
parent 59d821e164
commit ca13b13d81
No known key found for this signature in database
3 changed files with 5 additions and 2 deletions

View File

@ -371,8 +371,8 @@ try
/// in case of double fault. /// in case of double fault.
LOG_FATAL(log, "########## Short fault info ############"); LOG_FATAL(log, "########## Short fault info ############");
LOG_FATAL(log, "(version {}{}, build id: {}, git hash: {}) (from thread {}) Received signal {}", LOG_FATAL(log, "(version {}{}, build id: {}, git hash: {}, architecture: {}) (from thread {}) Received signal {}",
VERSION_STRING, VERSION_OFFICIAL, daemon ? daemon->build_id : "", GIT_HASH, VERSION_STRING, VERSION_OFFICIAL, daemon ? daemon->build_id : "", GIT_HASH, SYSTEM_PROCESSOR,
thread_num, sig); thread_num, sig);
std::string signal_description = "Unknown signal"; std::string signal_description = "Unknown signal";

View File

@ -15,3 +15,5 @@ const char * VERSION_DESCRIBE = "@VERSION_DESCRIBE@";
const unsigned VERSION_INTEGER = @VERSION_INTEGER@; const unsigned VERSION_INTEGER = @VERSION_INTEGER@;
const char * VERSION_GITHASH = "@VERSION_GITHASH@"; const char * VERSION_GITHASH = "@VERSION_GITHASH@";
const char * SYSTEM_PROCESSOR = "@CMAKE_SYSTEM_PROCESSOR@";

View File

@ -16,6 +16,7 @@ extern const char * VERSION_OFFICIAL;
extern const char * VERSION_FULL; extern const char * VERSION_FULL;
extern const char * VERSION_DESCRIBE; extern const char * VERSION_DESCRIBE;
extern const unsigned VERSION_INTEGER; extern const unsigned VERSION_INTEGER;
extern const char * SYSTEM_PROCESSOR;
/// These fields are frequently changing and we don't want to have them in the header file to allow caching. /// These fields are frequently changing and we don't want to have them in the header file to allow caching.
extern const char * VERSION_GITHASH; extern const char * VERSION_GITHASH;