diff options
author | Antti-Juhani Kaijanaho <ajk@debian.org> | 2011-07-23 16:35:25 +0300 |
---|---|---|
committer | Antti-Juhani Kaijanaho <ajk@debian.org> | 2011-07-23 16:35:25 +0300 |
commit | 225f7827155d61c26d29365f887588f3b2b3dc9a (patch) | |
tree | 40169e7d44387c60df5b02717d26adda0b964f5a /lib | |
parent | 7c4297b6b15bb83db0b964774d81fa993cdc20c8 (diff) | |
download | dctrl-tools-225f7827155d61c26d29365f887588f3b2b3dc9a.tar.gz |
Importing 2.18ubuntu1
Diffstat (limited to 'lib')
-rw-r--r-- | lib/msg.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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(); } |