projects
/
umurmur.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6014b0c
)
Issue 17 - patch by tilman2: Always pass a format string to syslog()
author
fatbob313
<martin@fatbob.nu>
Sun, 23 Jan 2011 12:05:52 +0000
(12:05 +0000)
committer
fatbob313
<martin@fatbob.nu>
Sun, 23 Jan 2011 12:05:52 +0000
(12:05 +0000)
src/log.c
patch
|
blob
|
history
diff --git
a/src/log.c
b/src/log.c
index 9392884f494d09db83f46c6721bde9b5e7c184e1..5d2af2b8bf295e2b80f1fc0c7c6dfcdd540c8563 100644
(file)
--- a/
src/log.c
+++ b/
src/log.c
@@
-66,7
+66,7
@@
void logthis(const char *logstring, ...)
if (termprint)
fprintf(stderr, "%s\n", buf);
else
if (termprint)
fprintf(stderr, "%s\n", buf);
else
- syslog(LOG_INFO, buf);
+ syslog(LOG_INFO,
"%s",
buf);
}
void Log_warn(const char *logstring, ...)
}
void Log_warn(const char *logstring, ...)
@@
-82,7
+82,7
@@
void Log_warn(const char *logstring, ...)
if (termprint)
fprintf(stderr, "%s\n", buf);
else
if (termprint)
fprintf(stderr, "%s\n", buf);
else
- syslog(LOG_WARNING, buf);
+ syslog(LOG_WARNING,
"%s",
buf);
}
void Log_info(const char *logstring, ...)
}
void Log_info(const char *logstring, ...)
@@
-98,7
+98,7
@@
void Log_info(const char *logstring, ...)
if (termprint)
fprintf(stderr, "%s\n", buf);
else
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, ...)
{
}
void Log_info_client(client_t *client, const char *logstring, ...)
{
@@
-118,7
+118,7
@@
void Log_info_client(client_t *client, const char *logstring, ...)
if (termprint)
fprintf(stderr, "%s\n", buf);
else
if (termprint)
fprintf(stderr, "%s\n", buf);
else
- syslog(LOG_INFO, buf);
+ syslog(LOG_INFO,
"%s",
buf);
}
}
@@
-136,7
+136,7
@@
void Log_debug(const char *logstring, ...)
if (termprint)
fprintf(stderr, "%s\n", buf);
else
if (termprint)
fprintf(stderr, "%s\n", buf);
else
- syslog(LOG_DEBUG, buf);
+ syslog(LOG_DEBUG,
"%s",
buf);
}
#endif
}
#endif
@@
-152,6
+152,6
@@
void Log_fatal(const char *logstring, ...)
if (termprint)
fprintf(stderr, "%s\n", buf);
else
if (termprint)
fprintf(stderr, "%s\n", buf);
else
- syslog(LOG_CRIT, buf);
+ syslog(LOG_CRIT,
"%s",
buf);
exit(1);
}
exit(1);
}