summaryrefslogtreecommitdiff
path: root/src/backend/backup
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2025-12-09 06:58:39 +0100
committerPeter Eisentraut <peter@eisentraut.org>2025-12-09 07:33:08 +0100
commit907caf5c392ad75177bdfd48d38cf0cc6904e8e1 (patch)
treead492d0b5caecff0e43fd6516722ad38abb82f88 /src/backend/backup
parent2b117bb014d066549c319dcd73bd538e32b0c408 (diff)
Clean up int64-related format strings
Remove some gratuitous uses of INT64_FORMAT. Make use of PRIu64/PRId64 were appropriate, remove unnecessary casts. Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/07fa29f9-42d7-4aac-8834-197918cbbab6%40eisentraut.org
Diffstat (limited to 'src/backend/backup')
-rw-r--r--src/backend/backup/basebackup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/backup/basebackup.c b/src/backend/backup/basebackup.c
index 2be4e069816..1fbc9af72ba 100644
--- a/src/backend/backup/basebackup.c
+++ b/src/backend/backup/basebackup.c
@@ -808,8 +808,8 @@ parse_basebackup_options(List *options, basebackup_options *opt)
if (maxrate < MAX_RATE_LOWER || maxrate > MAX_RATE_UPPER)
ereport(ERROR,
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
- errmsg("%d is outside the valid range for parameter \"%s\" (%d .. %d)",
- (int) maxrate, "MAX_RATE", MAX_RATE_LOWER, MAX_RATE_UPPER)));
+ errmsg("%" PRId64 " is outside the valid range for parameter \"%s\" (%d .. %d)",
+ maxrate, "MAX_RATE", MAX_RATE_LOWER, MAX_RATE_UPPER)));
opt->maxrate = (uint32) maxrate;
o_maxrate = true;