diff options
author | Christian Hammers <ch@debian.org> | 2011-03-23 13:07:55 +0300 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2011-08-03 13:09:51 +0400 |
commit | aad356a49d6b00590b21751ea560c54f321c73c9 (patch) | |
tree | a39044ea48fadba476a8b55b96b03799ed161b30 /lib/command.c | |
parent | 1740f9e5906a7cb264e7741dd57a91654cb05dd0 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/command.c b/lib/command.c index 45eb9e31..ebb50b40 100644 --- a/lib/command.c +++ b/lib/command.c @@ -3054,7 +3054,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; |