From: Mark Andrews Date: Fri, 14 Jan 2011 00:43:43 +0000 (+0000) Subject: silence: warning: format not a string literal and no format arguments X-Git-Tag: v9.7.3rc1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03fbf41ea859cf508e1d5321dd8b5f5ced46f70a;p=thirdparty%2Fbind9.git silence: warning: format not a string literal and no format arguments --- diff --git a/bin/tests/log_test.c b/bin/tests/log_test.c index 09b5fec3cb5..a9b2bdc209f 100644 --- a/bin/tests/log_test.c +++ b/bin/tests/log_test.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: log_test.c,v 1.26 2007/06/19 23:46:59 tbox Exp $ */ +/* $Id: log_test.c,v 1.26.558.1 2011/01/14 00:43:43 marka Exp $ */ /* Principal Authors: DCL */ @@ -306,16 +306,16 @@ main(int argc, char **argv) { isc_log_write1(lctx, DNS_LOGCATEGORY_GENERAL, DNS_LOGMODULE_RBTDB, ISC_LOG_CRITICAL, "%s", message); isc_log_write1(lctx, DNS_LOGCATEGORY_GENERAL, DNS_LOGMODULE_RBTDB, - ISC_LOG_CRITICAL, message); + ISC_LOG_CRITICAL, "%s", message); isc_log_setduplicateinterval(lcfg, 1); message = "This message should appear twice on stderr"; isc_log_write1(lctx, DNS_LOGCATEGORY_GENERAL, DNS_LOGMODULE_RBTDB, - ISC_LOG_CRITICAL, message); + ISC_LOG_CRITICAL, "%s", message); sleep(2); isc_log_write1(lctx, DNS_LOGCATEGORY_GENERAL, DNS_LOGMODULE_RBTDB, - ISC_LOG_CRITICAL, message); + ISC_LOG_CRITICAL, "%s", message); /* * Review where everything went.