mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 15:09:48 +01:00
internal: convert uname fields to strings before logging
fixes #4188, thanks @jbeich
This commit is contained in:
parent
11fd37418c
commit
ef445093f9
2 changed files with 6 additions and 6 deletions
|
@ -63,8 +63,8 @@ void CrashReporter::createAndSaveCrash(int sig) {
|
||||||
struct utsname unameInfo;
|
struct utsname unameInfo;
|
||||||
uname(&unameInfo);
|
uname(&unameInfo);
|
||||||
|
|
||||||
finalCrashReport +=
|
finalCrashReport += std::format("\tSystem name: {}\n\tNode name: {}\n\tRelease: {}\n\tVersion: {}\n\n", std::string{unameInfo.sysname}, std::string{unameInfo.nodename},
|
||||||
std::format("\tSystem name: {}\n\tNode name: {}\n\tRelease: {}\n\tVersion: {}\n\n", unameInfo.sysname, unameInfo.nodename, unameInfo.release, unameInfo.version);
|
std::string{unameInfo.release}, std::string{unameInfo.version});
|
||||||
|
|
||||||
#if defined(__DragonFly__) || defined(__FreeBSD__)
|
#if defined(__DragonFly__) || defined(__FreeBSD__)
|
||||||
const std::string GPUINFO = execAndGet("pciconf -lv | fgrep -A4 vga");
|
const std::string GPUINFO = execAndGet("pciconf -lv | fgrep -A4 vga");
|
||||||
|
|
|
@ -577,10 +577,10 @@ void logSystemInfo() {
|
||||||
|
|
||||||
uname(&unameInfo);
|
uname(&unameInfo);
|
||||||
|
|
||||||
Debug::log(LOG, "System name: {}", unameInfo.sysname);
|
Debug::log(LOG, "System name: {}", std::string{unameInfo.sysname});
|
||||||
Debug::log(LOG, "Node name: {}", unameInfo.nodename);
|
Debug::log(LOG, "Node name: {}", std::string{unameInfo.nodename});
|
||||||
Debug::log(LOG, "Release: {}", unameInfo.release);
|
Debug::log(LOG, "Release: {}", std::string{unameInfo.release});
|
||||||
Debug::log(LOG, "Version: {}", unameInfo.version);
|
Debug::log(LOG, "Version: {}", std::string{unameInfo.version});
|
||||||
|
|
||||||
Debug::log(NONE, "\n");
|
Debug::log(NONE, "\n");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue