diff options
author | Peter Eisentraut | 2022-04-20 14:11:14 +0000 |
---|---|---|
committer | Peter Eisentraut | 2022-04-20 14:11:14 +0000 |
commit | 6c0f9f60f1c24aead1bfdd0ed294ac5b6f1d1ac1 (patch) | |
tree | 9491089b36c239b301c75173f6c78a32199eb64d /src | |
parent | e70813fbc4aaca35ec012d5a426706bd54e4acab (diff) |
Fix incorrect format placeholders
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pgbench/pgbench.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/pgbench/pgbench.c b/src/bin/pgbench/pgbench.c index f8bcb1ab6de..02f250f5119 100644 --- a/src/bin/pgbench/pgbench.c +++ b/src/bin/pgbench/pgbench.c @@ -3515,11 +3515,11 @@ printVerboseErrorMessages(CState *st, pg_time_usec_t *now, bool is_retry) (is_retry ? "repeats the transaction after the error" : "ends the failed transaction")); - appendPQExpBuffer(buf, " (try %d", st->tries); + appendPQExpBuffer(buf, " (try %u", st->tries); /* Print max_tries if it is not unlimitted. */ if (max_tries) - appendPQExpBuffer(buf, "/%d", max_tries); + appendPQExpBuffer(buf, "/%u", max_tries); /* * If the latency limit is used, print a percentage of the current transaction @@ -4569,7 +4569,7 @@ doLog(TState *thread, CState *st, if (throttle_delay) fprintf(logfile, " %.0f", lag); if (max_tries != 1) - fprintf(logfile, " %d", st->tries - 1); + fprintf(logfile, " %u", st->tries - 1); fputc('\n', logfile); } } @@ -6262,7 +6262,7 @@ printResults(StatsData *total, printf("number of threads: %d\n", nthreads); if (max_tries) - printf("maximum number of tries: %d\n", max_tries); + printf("maximum number of tries: %u\n", max_tries); if (duration <= 0) { |