Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6c0f9f6

Browse files
committed
Fix incorrect format placeholders
1 parente70813f commit6c0f9f6

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)

[8]ページ先頭

©2009-2025 Movatter.jp