summaryrefslogtreecommitdiff
path: root/src/helpers/MiscFunctions.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2023-12-18 23:33:10 +0000
committerVaxry <vaxry@vaxry.net>2023-12-18 23:33:10 +0000
commitef445093f9fbd9a41a91914ef45e6499b3afa54d (patch)
tree18be8e91584106ea822ff9a98164a2e0caa159fb /src/helpers/MiscFunctions.cpp
parent11fd37418c8520d9e9ac49856502d1f7d67fae08 (diff)
internal: convert uname fields to strings before logging
fixes #4188, thanks @jbeich
Diffstat (limited to 'src/helpers/MiscFunctions.cpp')
-rw-r--r--src/helpers/MiscFunctions.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp
index 16650e1b..6eab7e2b 100644
--- a/src/helpers/MiscFunctions.cpp
+++ b/src/helpers/MiscFunctions.cpp
@@ -577,10 +577,10 @@ void logSystemInfo() {
uname(&unameInfo);
- Debug::log(LOG, "System name: {}", unameInfo.sysname);
- Debug::log(LOG, "Node name: {}", unameInfo.nodename);
- Debug::log(LOG, "Release: {}", unameInfo.release);
- Debug::log(LOG, "Version: {}", unameInfo.version);
+ Debug::log(LOG, "System name: {}", std::string{unameInfo.sysname});
+ Debug::log(LOG, "Node name: {}", std::string{unameInfo.nodename});
+ Debug::log(LOG, "Release: {}", std::string{unameInfo.release});
+ Debug::log(LOG, "Version: {}", std::string{unameInfo.version});
Debug::log(NONE, "\n");