]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: haterm: don't pass size_t to %lu in error messages
authorWilly Tarreau <w@1wt.eu>
Sat, 18 Apr 2026 09:25:30 +0000 (11:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 18 Apr 2026 09:25:30 +0000 (11:25 +0200)
It fails on 32-bit systems, let's cast it to ulong like in other places.
No backport needed.

src/haterm.c

index b452aef307c4d886bc632e4ba97e631ab28ce0aa..04bd790d5dc9851cd66c933e555b8e2e4be54c54 100644 (file)
@@ -1238,13 +1238,13 @@ static void hstream_init_splicing(void)
                if (master_pipesize < pipesize) {
                        if (master_pipesize < 60*1024) {
                                /* Older kernels were limited to around 60-61 kB */
-                               ha_warning("Failed to vmsplice haterm master pipe after %lu bytes, splicing disabled for haterm\n", master_pipesize);
+                               ha_warning("Failed to vmsplice haterm master pipe after %lu bytes, splicing disabled for haterm\n", (ulong)master_pipesize);
                                put_pipe(master_pipe);
                                master_pipe = NULL;
                                master_pipesize = 0;
                        }
                        else
-                               ha_warning("Splicing in haterm is limited to %lu bytes (too old kernel)\n", master_pipesize);
+                               ha_warning("Splicing in haterm is limited to %lu bytes (too old kernel)\n", (ulong)master_pipesize);
                }
        }
        else