Fix warnings about using variables (though const) as formatting strings. Fix whitespace.
This commit is contained in:
parent
47b09119a4
commit
b6618b6b74
1 changed files with 4 additions and 4 deletions
8
status.c
8
status.c
|
@ -47,16 +47,16 @@ STATUS debug(int loglevel, const char *location, const char *function, ...)
|
||||||
if (s == 0) {
|
if (s == 0) {
|
||||||
const char *text = "Failed to get proper strftime formatted date\n";
|
const char *text = "Failed to get proper strftime formatted date\n";
|
||||||
if (conf->foreground) {
|
if (conf->foreground) {
|
||||||
fprintf(stderr, text);
|
fprintf(stderr, "%s", text);
|
||||||
}
|
}
|
||||||
fprintf(logfile, text);
|
fprintf(logfile, "%s", text);
|
||||||
return ST_GENERAL_FAILURE;
|
return ST_GENERAL_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(logfile, "%s: %s(%d): Log level %d, at %s in function %s():\n",
|
fprintf(logfile, "%s: %s(%d): Log level %d, at %s in function %s():\n",
|
||||||
timebuf, get_process_name(), getpid(), loglevel, location, function);
|
timebuf, get_process_name(), getpid(), loglevel, location, function);
|
||||||
if (conf->foreground)
|
if (conf->foreground)
|
||||||
fprintf(stderr, "%s: %s(%d): Log level %d, at %s in function %s():\n",
|
fprintf(stderr, "%s: %s(%d): Log level %d, at %s in function %s():\n",
|
||||||
timebuf, get_process_name(), getpid(), loglevel, location, function);
|
timebuf, get_process_name(), getpid(), loglevel, location, function);
|
||||||
|
|
||||||
va_start(ap, function);
|
va_start(ap, function);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue