Fix incorrect format placeholders
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 4 May 2022 05:57:39 +0000 (07:57 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 4 May 2022 05:57:39 +0000 (07:57 +0200)
src/backend/access/rmgrdesc/relmapdesc.c
src/backend/access/rmgrdesc/xactdesc.c

index f1b129b8a99c2ce39456fbd71c4c6c3be67434e6..43d63eb9a43da4d155676a3a731dff01f885f988 100644 (file)
@@ -26,7 +26,7 @@ relmap_desc(StringInfo buf, XLogReaderState *record)
    {
        xl_relmap_update *xlrec = (xl_relmap_update *) rec;
 
-       appendStringInfo(buf, "database %u tablespace %u size %u",
+       appendStringInfo(buf, "database %u tablespace %u size %d",
                         xlrec->dbid, xlrec->tsid, xlrec->nbytes);
    }
 }
index d3f625d072629a875b394dc029c886414297b1fd..e739c4a3bd91bfc0978bcd4e85e1dc4f70139210 100644 (file)
@@ -319,7 +319,7 @@ xact_desc_stats(StringInfo buf, const char *label,
        appendStringInfo(buf, "; %sdropped stats:", label);
        for (i = 0; i < ndropped; i++)
        {
-           appendStringInfo(buf, " %u/%u/%u",
+           appendStringInfo(buf, " %d/%u/%u",
                             dropped_stats[i].kind,
                             dropped_stats[i].dboid,
                             dropped_stats[i].objoid);