]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix invalid format string in HASH_DEBUG code
authorDavid Rowley <drowley@postgresql.org>
Fri, 15 Aug 2025 06:06:13 +0000 (18:06 +1200)
committerDavid Rowley <drowley@postgresql.org>
Fri, 15 Aug 2025 06:06:13 +0000 (18:06 +1200)
This seems to have been broken back in be0a66666.

Reported-by: Hayato Kuroda (Fujitsu) <kuroda.hayato@fujitsu.com>
Author: David Rowley <dgrowleyml@gmail.com>
Discussion: https://postgr.es/m/OSCPR01MB14966E11EEFB37D7857FCEDB7F535A@OSCPR01MB14966.jpnprd01.prod.outlook.com
Backpatch-through: 14

src/backend/utils/hash/dynahash.c

index bd0525ecdc78f73b4025c94c9da9d44b66b16b1a..5e68eab7e66f2900e174c6e9d13da39bb20952df 100644 (file)
@@ -760,7 +760,7 @@ init_htab(HTAB *hashp, long nelem)
        hctl->nelem_alloc = choose_nelem_alloc(hctl->entrysize);
 
 #ifdef HASH_DEBUG
-       fprintf(stderr, "init_htab:\n%s%p\n%s%ld\n%s%ld\n%s%d\n%s%ld\n%s%u\n%s%x\n%s%x\n%s%ld\n",
+       fprintf(stderr, "init_htab:\n%s%p\n%s%ld\n%s%ld\n%s%d\n%s%u\n%s%x\n%s%x\n%s%ld\n",
                        "TABLE POINTER   ", hashp,
                        "DIRECTORY SIZE  ", hctl->dsize,
                        "SEGMENT SIZE    ", hctl->ssize,