Content-Length: 276783 | pFad | http://github.com/postgrespro/postgres/commit/888671a8cda5896d36d3ec523e201ab6a11e1855

3F pg_checksums: data_checksum_version is unsigned so use %u not %d · postgrespro/postgres@888671a · GitHub
Skip to content

Commit 888671a

Browse files
committed
pg_checksums: data_checksum_version is unsigned so use %u not %d
While the previous behavior didn't generate a warning, we might as well use an accurate *printf specification. Backpatch-through: 12
1 parent f7f83a5 commit 888671a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/pg_checksums/pg_checksums.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ main(int argc, char *argv[])
635635
if (mode == PG_MODE_CHECK)
636636
{
637637
printf(_("Bad checksums: %s\n"), psprintf(INT64_FORMAT, badblocks));
638-
printf(_("Data checksum version: %d\n"), ControlFile->data_checksum_version);
638+
printf(_("Data checksum version: %u\n"), ControlFile->data_checksum_version);
639639

640640
if (badblocks > 0)
641641
exit(1);
@@ -662,7 +662,7 @@ main(int argc, char *argv[])
662662
update_controlfile(DataDir, ControlFile, do_sync);
663663

664664
if (verbose)
665-
printf(_("Data checksum version: %d\n"), ControlFile->data_checksum_version);
665+
printf(_("Data checksum version: %u\n"), ControlFile->data_checksum_version);
666666
if (mode == PG_MODE_ENABLE)
667667
printf(_("Checksums enabled in cluster\n"));
668668
else

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/888671a8cda5896d36d3ec523e201ab6a11e1855

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy