Skip to content

Commit 6c0f9f6

Browse files
committed
Fix incorrect format placeholders
1 parent e70813f commit 6c0f9f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bin/pgbench/pgbench.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3515,11 +3515,11 @@ printVerboseErrorMessages(CState *st, pg_time_usec_t *now, bool is_retry)
35153515
(is_retry ?
35163516
"repeats the transaction after the error" :
35173517
"ends the failed transaction"));
3518-
appendPQExpBuffer(buf, " (try %d", st->tries);
3518+
appendPQExpBuffer(buf, " (try %u", st->tries);
35193519

35203520
/* Print max_tries if it is not unlimitted. */
35213521
if (max_tries)
3522-
appendPQExpBuffer(buf, "/%d", max_tries);
3522+
appendPQExpBuffer(buf, "/%u", max_tries);
35233523

35243524
/*
35253525
* If the latency limit is used, print a percentage of the current transaction
@@ -4569,7 +4569,7 @@ doLog(TState *thread, CState *st,
45694569
if (throttle_delay)
45704570
fprintf(logfile, " %.0f", lag);
45714571
if (max_tries != 1)
4572-
fprintf(logfile, " %d", st->tries - 1);
4572+
fprintf(logfile, " %u", st->tries - 1);
45734573
fputc('\n', logfile);
45744574
}
45754575
}
@@ -6262,7 +6262,7 @@ printResults(StatsData *total,
62626262
printf("number of threads: %d\n", nthreads);
62636263

62646264
if (max_tries)
6265-
printf("maximum number of tries: %d\n", max_tries);
6265+
printf("maximum number of tries: %u\n", max_tries);
62666266

62676267
if (duration <= 0)
62686268
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy