mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
Use PRI?64 instead of "ll?" in format strings (continued).
Continuation of work started in commit 15a79c73, after initial trial.
Author: Thomas Munro <thomas.munro@gmail.com>
Discussion: https://postgr.es/m/b936d2fb-590d-49c3-a615-92c3a88c6c19%40eisentraut.org
This commit is contained in:
@@ -28,15 +28,15 @@ clog_desc(StringInfo buf, XLogReaderState *record)
|
||||
int64 pageno;
|
||||
|
||||
memcpy(&pageno, rec, sizeof(pageno));
|
||||
appendStringInfo(buf, "page %lld", (long long) pageno);
|
||||
appendStringInfo(buf, "page %" PRId64, pageno);
|
||||
}
|
||||
else if (info == CLOG_TRUNCATE)
|
||||
{
|
||||
xl_clog_truncate xlrec;
|
||||
|
||||
memcpy(&xlrec, rec, sizeof(xl_clog_truncate));
|
||||
appendStringInfo(buf, "page %lld; oldestXact %u",
|
||||
(long long) xlrec.pageno, xlrec.oldestXact);
|
||||
appendStringInfo(buf, "page %" PRId64 "; oldestXact %u",
|
||||
xlrec.pageno, xlrec.oldestXact);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -28,14 +28,14 @@ commit_ts_desc(StringInfo buf, XLogReaderState *record)
|
||||
int64 pageno;
|
||||
|
||||
memcpy(&pageno, rec, sizeof(pageno));
|
||||
appendStringInfo(buf, "%lld", (long long) pageno);
|
||||
appendStringInfo(buf, "%" PRId64, pageno);
|
||||
}
|
||||
else if (info == COMMIT_TS_TRUNCATE)
|
||||
{
|
||||
xl_commit_ts_truncate *trunc = (xl_commit_ts_truncate *) rec;
|
||||
|
||||
appendStringInfo(buf, "pageno %lld, oldestXid %u",
|
||||
(long long) trunc->pageno, trunc->oldestXid);
|
||||
appendStringInfo(buf, "pageno %" PRId64 ", oldestXid %u",
|
||||
trunc->pageno, trunc->oldestXid);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ multixact_desc(StringInfo buf, XLogReaderState *record)
|
||||
int64 pageno;
|
||||
|
||||
memcpy(&pageno, rec, sizeof(pageno));
|
||||
appendStringInfo(buf, "%lld", (long long) pageno);
|
||||
appendStringInfo(buf, "%" PRId64, pageno);
|
||||
}
|
||||
else if (info == XLOG_MULTIXACT_CREATE_ID)
|
||||
{
|
||||
|
||||
@@ -320,10 +320,10 @@ xact_desc_stats(StringInfo buf, const char *label,
|
||||
uint64 objid =
|
||||
((uint64) dropped_stats[i].objid_hi) << 32 | dropped_stats[i].objid_lo;
|
||||
|
||||
appendStringInfo(buf, " %d/%u/%llu",
|
||||
appendStringInfo(buf, " %d/%u/%" PRIu64,
|
||||
dropped_stats[i].kind,
|
||||
dropped_stats[i].dboid,
|
||||
(unsigned long long) objid);
|
||||
objid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user