aboutsummaryrefslogtreecommitdiffstats
path: root/src/log.h
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.h
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 'src/log.h')
-rw-r--r--src/log.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/log.h b/src/log.h
index 436d54d97..68ae995aa 100644
--- a/src/log.h
+++ b/src/log.h
@@ -19,17 +19,15 @@
#ifndef MPD_LOG_H
#define MPD_LOG_H
-#include "gcc.h"
-
#include <glib.h>
#include <stdbool.h>
-mpd_printf void ERROR(const char *fmt, ...);
-mpd_printf void LOG(const char *fmt, ...);
-mpd_printf void SECURE(const char *fmt, ...);
-mpd_printf void DEBUG(const char *fmt, ...);
-mpd_printf void WARNING(const char *fmt, ...);
-mpd_printf G_GNUC_NORETURN void FATAL(const char *fmt, ...);
+G_GNUC_PRINTF(1, 2) void ERROR(const char *fmt, ...);
+G_GNUC_PRINTF(1, 2) void LOG(const char *fmt, ...);
+G_GNUC_PRINTF(1, 2) void SECURE(const char *fmt, ...);
+G_GNUC_PRINTF(1, 2) void DEBUG(const char *fmt, ...);
+G_GNUC_PRINTF(1, 2) void WARNING(const char *fmt, ...);
+G_GNUC_PRINTF(1, 2) G_GNUC_NORETURN void FATAL(const char *fmt, ...);
void initLog(bool verbose);