if (termprint)
fprintf(stderr, "%s\n", buf);
else
- syslog(LOG_INFO, buf);
+ syslog(LOG_INFO, "%s", buf);
}
void Log_warn(const char *logstring, ...)
if (termprint)
fprintf(stderr, "%s\n", buf);
else
- syslog(LOG_WARNING, buf);
+ syslog(LOG_WARNING, "%s", buf);
}
void Log_info(const char *logstring, ...)
if (termprint)
fprintf(stderr, "%s\n", buf);
else
- syslog(LOG_INFO, buf);
+ syslog(LOG_INFO, "%s", buf);
}
void Log_info_client(client_t *client, const char *logstring, ...)
{
if (termprint)
fprintf(stderr, "%s\n", buf);
else
- syslog(LOG_INFO, buf);
+ syslog(LOG_INFO, "%s", buf);
}
if (termprint)
fprintf(stderr, "%s\n", buf);
else
- syslog(LOG_DEBUG, buf);
+ syslog(LOG_DEBUG, "%s", buf);
}
#endif
if (termprint)
fprintf(stderr, "%s\n", buf);
else
- syslog(LOG_CRIT, buf);
+ syslog(LOG_CRIT, "%s", buf);
exit(1);
}