Fix warnings about using variables (though const) as formatting strings. Fix whitespace.

This commit is contained in:
Wilco Baan Hofman 2016-11-28 10:21:45 +01:00
parent 47b09119a4
commit b6618b6b74

View file

@ -47,9 +47,9 @@ STATUS debug(int loglevel, const char *location, const char *function, ...)
if (s == 0) {
const char *text = "Failed to get proper strftime formatted date\n";
if (conf->foreground) {
fprintf(stderr, text);
fprintf(stderr, "%s", text);
}
fprintf(logfile, text);
fprintf(logfile, "%s", text);
return ST_GENERAL_FAILURE;
}