1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-06 18:42:54 +03:00

Fix some remaining int64 vestiges in contrib/test_shm_mq.

Andres Freund and Tom Lane
This commit is contained in:
Tom Lane
2014-03-18 14:26:44 -04:00
parent c676ac0f3f
commit b6ec7c92ac
2 changed files with 12 additions and 7 deletions

View File

@@ -254,12 +254,12 @@ verify_message(Size origlen, char *origdata, Size newlen, char *newdata)
if (origlen != newlen)
ereport(ERROR,
(errmsg("message corrupted"),
errdetail("The original message was " UINT64_FORMAT " bytes but the final message is " UINT64_FORMAT " bytes.",
errdetail("The original message was %zu bytes but the final message is %zu bytes.",
origlen, newlen)));
for (i = 0; i < origlen; ++i)
if (origdata[i] != newdata[i])
ereport(ERROR,
(errmsg("message corrupted"),
errdetail("The new and original messages differ at byte " UINT64_FORMAT " of " UINT64_FORMAT ".", i, origlen)));
errdetail("The new and original messages differ at byte %zu of %zu.", i, origlen)));
}