Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Fix compilation warning in ipci.c
authorMichael Paquier <michael@paquier.xyz>
Wed, 8 Sep 2021 05:22:52 +0000 (14:22 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 8 Sep 2021 05:22:52 +0000 (14:22 +0900)
A Size had better use %zu when printed.

Oversight in bd17880, per buildfarm member lapwing.

src/backend/storage/ipc/ipci.c

index 1a408ad77e5cdafb5e89fea0fec9cc54ac87907c..13f3926ff67e237dbf52244eaa15a4b5d39fe401 100644 (file)
@@ -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);
 }