summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAntti-Juhani Kaijanaho <ajk@debian.org>2011-07-23 16:35:25 +0300
committerAntti-Juhani Kaijanaho <ajk@debian.org>2011-07-23 16:35:25 +0300
commit225f7827155d61c26d29365f887588f3b2b3dc9a (patch)
tree40169e7d44387c60df5b02717d26adda0b964f5a /lib
parent7c4297b6b15bb83db0b964774d81fa993cdc20c8 (diff)
downloaddctrl-tools-225f7827155d61c26d29365f887588f3b2b3dc9a.tar.gz
Importing 2.18ubuntu1
Diffstat (limited to 'lib')
-rw-r--r--lib/msg.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/msg.h b/lib/msg.h
index 23cf1ce..e61b3a4 100644
--- a/lib/msg.h
+++ b/lib/msg.h
@@ -112,7 +112,7 @@ inline static void
debug_message (const char * s, const char * fname)
{
#ifdef INCLUDE_DEBUG_MSGS
- message (L_DEBUG, s, fname);
+ message (L_DEBUG, fname, "%s", s);
#endif
}
@@ -137,7 +137,7 @@ debug(const char * s, ...)
inline static void
errno_msg(int severity, char const * fname)
{
- message(severity, strerror(errno), fname);
+ message(severity, fname, "%s", strerror(errno));
}
#define enomem_msg _("cannot find enough memory")
@@ -145,13 +145,13 @@ errno_msg(int severity, char const * fname)
inline static void
enomem (const char * fname)
{
- message (L_IMPORTANT, enomem_msg, fname);
+ message (L_IMPORTANT, fname, enomem_msg);
}
inline static void
fatal_enomem (const char * fname)
{
- message(L_FATAL, enomem_msg, fname);
+ message(L_FATAL, fname, enomem_msg);
fail();
}