From: Alvaro Herrera Date: Fri, 10 Jun 2011 17:37:06 +0000 (-0400) Subject: Use a constant sprintf format to silence compiler warning X-Git-Tag: REL9_1_BETA3~106 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;ds=sidebyside;h=3d114b63b253605eb60055c910aa2e55c98d5ed2;p=postgresql Use a constant sprintf format to silence compiler warning --- diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c index 11bab38280..387092724d 100644 --- a/src/backend/storage/file/fd.c +++ b/src/backend/storage/file/fd.c @@ -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 */