aboutsummaryrefslogtreecommitdiffstats
path: root/plpprint/plpprintd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plpprint/plpprintd.cc')
-rw-r--r--plpprint/plpprintd.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/plpprint/plpprintd.cc b/plpprint/plpprintd.cc
index e68525a..5898d64 100644
--- a/plpprint/plpprintd.cc
+++ b/plpprint/plpprintd.cc
@@ -91,7 +91,7 @@ debuglog(char *fmt, ...)
if (debug)
cout << buf << endl;
else
- syslog(LOG_DEBUG, buf);
+ syslog(LOG_DEBUG, "%s", buf);
free(buf);
return 0;
}
@@ -104,7 +104,7 @@ errorlog(char *fmt, ...)
if (debug)
cerr << buf << endl;
else
- syslog(LOG_ERR, buf);
+ syslog(LOG_ERR, "%s", buf);
free(buf);
return 0;
}
@@ -117,7 +117,7 @@ infolog(char *fmt, ...)
if (debug)
cout << buf << endl;
else
- syslog(LOG_INFO, buf);
+ syslog(LOG_INFO, "%s", buf);
free(buf);
return 0;
}