summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorChristian Hammers <ch@debian.org>2011-03-23 13:07:55 +0300
committerDenis Ovsienko <infrastation@yandex.ru>2011-03-23 13:07:55 +0300
commitfc95186c30884c96543aecfc56cfe5b08774525b (patch)
tree370b07b428152c8979b081b1a9267755b6df42be /lib/command.c
parent98e30f5db6dea65a5d6a176065cd0b60eb7bb001 (diff)
lib: fix more format warnings (#637)
The following patch was also neccessary to compile. * command.c: (config_logmsg_cmd) use "%s" format spec * if.c: (connected_log) ditto
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/command.c b/lib/command.c
index 5a13f39c..264e0f7b 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -3056,7 +3056,7 @@ DEFUN (config_logmsg,
if ((level = level_match(argv[0])) == ZLOG_DISABLED)
return CMD_ERR_NO_MATCH;
- zlog(NULL, level, ((message = argv_concat(argv, argc, 1)) ? message : ""));
+ zlog(NULL, level, "%s", ((message = argv_concat(argv, argc, 1)) ? message : ""));
if (message)
XFREE(MTYPE_TMP, message);
return CMD_SUCCESS;