diff --git a/src/utilities/Debug.cpp b/src/utilities/Debug.cpp index 6dfd8c5..873822f 100644 --- a/src/utilities/Debug.cpp +++ b/src/utilities/Debug.cpp @@ -24,7 +24,7 @@ void Debug::log(LogLevel level, std::string msg) { default: break; } - printf((msg + "\n").c_str()); + printf("%s", (msg + "\n").c_str()); // also log to a file const std::string DEBUGPATH = ISDEBUG ? "/tmp/hypr/hyprd.log" : "/tmp/hypr/hypr.log"; @@ -32,4 +32,4 @@ void Debug::log(LogLevel level, std::string msg) { ofs.open(DEBUGPATH, std::ios::out | std::ios::app); ofs << msg << "\n"; ofs.close(); -} \ No newline at end of file +}