diff options
author | Max Kellermann <max@duempel.org> | 2013-10-15 09:13:22 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-15 09:13:22 +0200 |
commit | 1dd1a705b58f1645cda679b88a2629d21adcbd07 (patch) | |
tree | b31bab0f54729b6823ed45a458c65817e6308717 /src/Log.hxx | |
parent | e4e80ff0cb2dc269bf56b5eb96571b681edeed05 (diff) | |
download | mpd-1dd1a705b58f1645cda679b88a2629d21adcbd07.tar.gz mpd-1dd1a705b58f1645cda679b88a2629d21adcbd07.tar.xz mpd-1dd1a705b58f1645cda679b88a2629d21adcbd07.zip |
gcc.h: major update
Copy the according file from another project (i.e. XCSoar). This will
allow copying more code more easily.
Diffstat (limited to '')
-rw-r--r-- | src/Log.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Log.hxx b/src/Log.hxx index 719f1c448..f7803ceb6 100644 --- a/src/Log.hxx +++ b/src/Log.hxx @@ -43,7 +43,7 @@ enum class LogLevel { void Log(const Domain &domain, LogLevel level, const char *msg); -gcc_fprintf_ +gcc_printf(3,4) void LogFormat(const Domain &domain, LogLevel level, const char *fmt, ...); @@ -53,7 +53,7 @@ LogDebug(const Domain &domain, const char *msg) Log(domain, LogLevel::DEBUG, msg); } -gcc_fprintf +gcc_printf(2,3) void FormatDebug(const Domain &domain, const char *fmt, ...); @@ -63,7 +63,7 @@ LogInfo(const Domain &domain, const char *msg) Log(domain, LogLevel::INFO, msg); } -gcc_fprintf +gcc_printf(2,3) void FormatInfo(const Domain &domain, const char *fmt, ...); @@ -73,7 +73,7 @@ LogWarning(const Domain &domain, const char *msg) Log(domain, LogLevel::WARNING, msg); } -gcc_fprintf +gcc_printf(2,3) void FormatWarning(const Domain &domain, const char *fmt, ...); @@ -83,7 +83,7 @@ LogError(const Domain &domain, const char *msg) Log(domain, LogLevel::ERROR, msg); } -gcc_fprintf +gcc_printf(2,3) void FormatError(const Domain &domain, const char *fmt, ...); @@ -93,7 +93,7 @@ LogError(const Error &error); void LogError(const Error &error, const char *msg); -gcc_fprintf +gcc_printf(2,3) void FormatError(const Error &error, const char *fmt, ...); @@ -103,11 +103,11 @@ LogErrno(const Domain &domain, int e, const char *msg); void LogErrno(const Domain &domain, const char *msg); -gcc_fprintf_ +gcc_printf(3,4) void FormatErrno(const Domain &domain, int e, const char *fmt, ...); -gcc_fprintf +gcc_printf(2,3) void FormatErrno(const Domain &domain, const char *fmt, ...); |