diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-09 09:46:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-09 09:46:02 +0100 |
commit | 79077e6c10db9e8e53a8134f72e326f3ffb9c51c (patch) | |
tree | f8e349d30bcd971780c19b988206e5fce85a8c63 /platform/linuxbsd/crash_handler_linuxbsd.cpp | |
parent | 5e53d9d777a4087204dc142d21b878bfab265d63 (diff) | |
parent | 90162851a79f46a0e8887e9a403b9ee4db333eb9 (diff) |
Merge pull request #57817 from akien-mga/version-hash-cpp
Diffstat (limited to 'platform/linuxbsd/crash_handler_linuxbsd.cpp')
-rw-r--r-- | platform/linuxbsd/crash_handler_linuxbsd.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/platform/linuxbsd/crash_handler_linuxbsd.cpp b/platform/linuxbsd/crash_handler_linuxbsd.cpp index e9369fefdd..b4ec7924f6 100644 --- a/platform/linuxbsd/crash_handler_linuxbsd.cpp +++ b/platform/linuxbsd/crash_handler_linuxbsd.cpp @@ -33,7 +33,6 @@ #include "core/config/project_settings.h" #include "core/os/os.h" #include "core/version.h" -#include "core/version_hash.gen.h" #include "main/main.h" #ifdef DEBUG_ENABLED @@ -71,10 +70,10 @@ static void handle_crash(int sig) { } // Print the engine version just before, so that people are reminded to include the version in backtrace reports. - if (String(VERSION_HASH).length() != 0) { - fprintf(stderr, "Engine version: " VERSION_FULL_NAME " (" VERSION_HASH ")\n"); + if (String(VERSION_HASH).is_empty()) { + fprintf(stderr, "Engine version: %s\n", VERSION_FULL_NAME); } else { - fprintf(stderr, "Engine version: " VERSION_FULL_NAME "\n"); + fprintf(stderr, "Engine version: %s (%s)\n", VERSION_FULL_NAME, VERSION_HASH); } fprintf(stderr, "Dumping the backtrace. %s\n", msg.utf8().get_data()); char **strings = backtrace_symbols(bt_buffer, size); |