]> granicus.if.org Git - apache/commitdiff
fix this warning:
authorJeff Trawick <trawick@apache.org>
Wed, 3 Mar 2010 19:29:34 +0000 (19:29 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 3 Mar 2010 19:29:34 +0000 (19:29 +0000)
mod_example_hooks.c: In function â€˜trace_nocontext’:
mod_example_hooks.c:494: warning: format not a string literal and no format arguments

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@918654 13f79535-47bb-0310-9956-ffa450edef68

modules/examples/mod_example_hooks.c

index f6b997932967f0e260570b320b261b8095237b03..16c94d7394b02ca9be149c3a3d5dfe6321143e94 100644 (file)
@@ -491,7 +491,7 @@ static void trace_nocontext(apr_pool_t *p, const char *file, int line,
      */
 
 #ifdef EXAMPLE_LOG_EACH
-    ap_log_perror(file, line, APLOG_NOTICE, 0, p, note);
+    ap_log_perror(file, line, APLOG_NOTICE, 0, p, "%s", note);
 #endif
 }