]> granicus.if.org Git - postgresql/commitdiff
Use a constant sprintf format to silence compiler warning
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 10 Jun 2011 17:37:06 +0000 (13:37 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 10 Jun 2011 17:38:50 +0000 (13:38 -0400)
src/backend/storage/file/fd.c

index 11bab38280e4049a09d4289004dc687b914ef8e5..387092724d26d3b0665939f9973634c416462e59 100644 (file)
@@ -562,7 +562,7 @@ _dump_lru(void)
                snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "%d ", mru);
        }
        snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "LEAST");
-       elog(LOG, buf);
+       elog(LOG, "%s", buf);
 }
 #endif   /* FDDEBUG */