aboutsummaryrefslogtreecommitdiffstats
path: root/src/log.c
diff options
context:
space:
mode:
authorThomas Jansen <mithi@mithi.net>2008-12-02 03:00:02 +0100
committerThomas Jansen <mithi@mithi.net>2008-12-02 03:00:02 +0100
commitc06ce44768d6fd5a87b97d9c8ab6df10dd692eb6 (patch)
tree654ac296c574154b71d72e0eabd1a4c4fa123141 /src/log.c
parente6ae40982e89053a4326058e726422ef7602bd1a (diff)
downloadmpd-c06ce44768d6fd5a87b97d9c8ab6df10dd692eb6.tar.gz
mpd-c06ce44768d6fd5a87b97d9c8ab6df10dd692eb6.tar.xz
mpd-c06ce44768d6fd5a87b97d9c8ab6df10dd692eb6.zip
replaced mpd_printf etc by G_GNUC_PRINTF
We want to remove gcc.h eventually. This takes care of all the G_GNUC_PRINTF macros.
Diffstat (limited to '')
-rw-r--r--src/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/log.c b/src/log.c
index e30511397..e09aaf32a 100644
--- a/src/log.c
+++ b/src/log.c
@@ -164,7 +164,7 @@ void setup_log_output(bool use_stdout)
}
#define log_func(func,level) \
-mpd_printf void func(const char *fmt, ...) \
+G_GNUC_PRINTF(1, 2) void func(const char *fmt, ...) \
{ \
if (level <= (int)log_threshold) { \
va_list args; \
@@ -182,7 +182,7 @@ log_func(DEBUG, G_LOG_LEVEL_DEBUG)
#undef log_func
-mpd_printf G_GNUC_NORETURN void FATAL(const char *fmt, ...)
+G_GNUC_PRINTF(1, 2) G_GNUC_NORETURN void FATAL(const char *fmt, ...)
{
va_list args;
va_start(args, fmt);