Merge pull request #17 from 3JlOy-PYCCKUi/main

litle printf fix
This commit is contained in:
vaxerski 2021-12-11 15:00:59 +01:00 committed by GitHub
commit df02ccaa75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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";