From: Michael Paquier Date: Wed, 8 Sep 2021 05:22:52 +0000 (+0900) Subject: Fix compilation warning in ipci.c X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=aa37a439db6bd328d68ce815ab9e12467f42493b;p=users%2Frhaas%2Fpostgres.git Fix compilation warning in ipci.c A Size had better use %zu when printed. Oversight in bd17880, per buildfarm member lapwing. --- diff --git a/src/backend/storage/ipc/ipci.c b/src/backend/storage/ipc/ipci.c index 1a408ad77e..13f3926ff6 100644 --- a/src/backend/storage/ipc/ipci.c +++ b/src/backend/storage/ipc/ipci.c @@ -332,6 +332,6 @@ InitializeShmemGUCs(void) */ size_b = CalculateShmemSize(NULL); size_mb = add_size(size_b, (1024 * 1024) - 1) / (1024 * 1024); - sprintf(buf, "%lu", size_mb); + sprintf(buf, "%zu", size_mb); SetConfigOption("shared_memory_size", buf, PGC_INTERNAL, PGC_S_OVERRIDE); }