Skip to content

Commit fc32be3

Browse files
committed
Fix incorrect format placeholders
Fixes for return type of dclist_count().
1 parent 32edf73 commit fc32be3

File tree

1 file changed

+5
-5
lines changed
  • src/backend/storage/aio

1 file changed

+5
-5
lines changed

src/backend/storage/aio/aio.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ pgaio_io_wait_for_free(void)
752752
{
753753
int reclaimed = 0;
754754

755-
pgaio_debug(DEBUG2, "waiting for free IO with %d pending, %d in-flight, %d idle IOs",
755+
pgaio_debug(DEBUG2, "waiting for free IO with %d pending, %u in-flight, %u idle IOs",
756756
pgaio_my_backend->num_staged_ios,
757757
dclist_count(&pgaio_my_backend->in_flight_ios),
758758
dclist_count(&pgaio_my_backend->idle_ios));
@@ -797,7 +797,7 @@ pgaio_io_wait_for_free(void)
797797
if (dclist_count(&pgaio_my_backend->in_flight_ios) == 0)
798798
ereport(ERROR,
799799
errmsg_internal("no free IOs despite no in-flight IOs"),
800-
errdetail_internal("%d pending, %d in-flight, %d idle IOs",
800+
errdetail_internal("%d pending, %u in-flight, %u idle IOs",
801801
pgaio_my_backend->num_staged_ios,
802802
dclist_count(&pgaio_my_backend->in_flight_ios),
803803
dclist_count(&pgaio_my_backend->idle_ios)));
@@ -828,7 +828,7 @@ pgaio_io_wait_for_free(void)
828828
case PGAIO_HS_COMPLETED_IO:
829829
case PGAIO_HS_SUBMITTED:
830830
pgaio_debug_io(DEBUG2, ioh,
831-
"waiting for free io with %d in flight",
831+
"waiting for free io with %u in flight",
832832
dclist_count(&pgaio_my_backend->in_flight_ios));
833833

834834
/*
@@ -1252,7 +1252,7 @@ pgaio_closing_fd(int fd)
12521252
break;
12531253

12541254
pgaio_debug_io(DEBUG2, ioh,
1255-
"waiting for IO before FD %d gets closed, %d in-flight IOs",
1255+
"waiting for IO before FD %d gets closed, %u in-flight IOs",
12561256
fd, dclist_count(&pgaio_my_backend->in_flight_ios));
12571257

12581258
/* see comment in pgaio_io_wait_for_free() about raciness */
@@ -1288,7 +1288,7 @@ pgaio_shutdown(int code, Datum arg)
12881288
uint64 generation = ioh->generation;
12891289

12901290
pgaio_debug_io(DEBUG2, ioh,
1291-
"waiting for IO to complete during shutdown, %d in-flight IOs",
1291+
"waiting for IO to complete during shutdown, %u in-flight IOs",
12921292
dclist_count(&pgaio_my_backend->in_flight_ios));
12931293

12941294
/* see comment in pgaio_io_wait_for_free() about raciness */

0 commit comments

Comments
 (0)