Fix incorrect placeholder in walreceiver.c
authorMichael Paquier <michael@paquier.xyz>
Fri, 19 Jan 2024 04:20:49 +0000 (13:20 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 19 Jan 2024 04:20:49 +0000 (13:20 +0900)
Author: Yongtao Huang
Discussion: https://postgr.es/m/CAOe1Go3H7CgrSceO+HBhnoptk-mJhii-YT8D19CikKintjwumQ@mail.gmail.com

src/backend/replication/walreceiver.c

index e00395ff2b41b97dd606638cd1ff2e3ba308bca1..728059518e1e5be3936f9d75ccdaf723d1193cd5 100644 (file)
@@ -955,7 +955,7 @@ XLogWalRcvWrite(char *buf, Size nbytes, XLogRecPtr recptr, TimeLineID tli)
                        ereport(PANIC,
                                        (errcode_for_file_access(),
                                         errmsg("could not write to WAL segment %s "
-                                                       "at offset %u, length %lu: %m",
+                                                       "at offset %d, length %lu: %m",
                                                        xlogfname, startoff, (unsigned long) segbytes)));
                }