Skip to content

Commit

Permalink
TraceControl: fix error: format not a string literal and no format ar…
Browse files Browse the repository at this point in the history
…guments
  • Loading branch information
bramoosterhuis committed Mar 23, 2021
1 parent 860a4ea commit f47be7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions TraceControl/TraceOutput.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ namespace Plugin {
private:
void HandleTraceMessage(const string& message) override {
#ifndef __WINDOWS__
syslog(LOG_NOTICE, message.c_str());
syslog(LOG_NOTICE, _T("%s"), message.c_str());
#else
printf(message.c_str());
printf(_T("%s"), message.c_str());
#endif
}
};
Expand All @@ -100,7 +100,7 @@ namespace Plugin {

private:
void HandleTraceMessage(const string& message) override {
printf(message.c_str());
printf(_T("%s"), message.c_str());
}
};
class TraceJSONOutput : public Trace::ITraceMedia {
Expand Down

0 comments on commit f47be7a

Please sign in to comment.