litle printf fix

This commit is contained in:
3JlOy_PYCCKUI 2021-12-11 15:12:21 +03:00
parent f4148d1b24
commit 37496f4ad4

View file

@ -24,7 +24,7 @@ void Debug::log(LogLevel level, std::string msg) {
default: default:
break; break;
} }
printf((msg + "\n").c_str()); printf("%s", (msg + "\n").c_str());
// also log to a file // also log to a file
const std::string DEBUGPATH = ISDEBUG ? "/tmp/hypr/hyprd.log" : "/tmp/hypr/hypr.log"; const std::string DEBUGPATH = ISDEBUG ? "/tmp/hypr/hyprd.log" : "/tmp/hypr/hypr.log";