Don't call syslog() without a format string.

This commit is contained in:
Kris Kennaway 2000-07-12 00:50:49 +00:00
parent 0e0b415c72
commit ed9ee320b0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62989
5 changed files with 8 additions and 8 deletions

View File

@ -165,7 +165,7 @@ static CLIENT *get_client(struct sockaddr_in *host_addr)
client = clntudp_create(host_addr, NLM_PROG, NLM_VERS, retry_time, &sock_no);
if (!client)
{
syslog(LOG_ERR, clnt_spcreateerror("clntudp_create"));
syslog(LOG_ERR, "%s", clnt_spcreateerror("clntudp_create"));
syslog(LOG_ERR, "Unable to return result to %s",
inet_ntoa(host_addr->sin_addr));
return NULL;

View File

@ -84,11 +84,11 @@ void _msgout(char* msg)
{
#ifdef RPC_SVC_FG
if (_rpcpmstart)
syslog(LOG_ERR, msg);
syslog(LOG_ERR, "%s", msg);
else
warnx("%s", msg);
#else
syslog(LOG_ERR, msg);
syslog(LOG_ERR, "%s", msg);
#endif
}

View File

@ -84,11 +84,11 @@ void _msgout(char* msg)
{
#ifdef RPC_SVC_FG
if (_rpcpmstart)
syslog(LOG_ERR, msg);
syslog(LOG_ERR, "%s", msg);
else
warnx("%s", msg);
#else
syslog(LOG_ERR, msg);
syslog(LOG_ERR, "%s", msg);
#endif
}

View File

@ -513,7 +513,7 @@ void
quit(msg)
char *msg;
{
syslog(LOG_ERR, msg);
syslog(LOG_ERR, "%s", msg);
exit(1);
}

View File

@ -91,11 +91,11 @@ void _msgout(char* msg)
{
if (debug) {
if (_rpcpmstart)
syslog(LOG_ERR, msg);
syslog(LOG_ERR, "%s", msg);
else
warnx("%s", msg);
} else
syslog(LOG_ERR, msg);
syslog(LOG_ERR, "%s", msg);
}
pid_t yp_pid;