]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix incorrect format placeholders
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 2 Jun 2025 08:12:58 +0000 (10:12 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 2 Jun 2025 08:12:58 +0000 (10:12 +0200)
Fixes for return type of dclist_count().

src/backend/storage/aio/aio.c

index c64d815ebd12afd7af744b5fa252b36d26b41789..6c6c0a908e21f3268d2fd2f644330d524572ea97 100644 (file)
@@ -752,7 +752,7 @@ pgaio_io_wait_for_free(void)
 {
        int                     reclaimed = 0;
 
-       pgaio_debug(DEBUG2, "waiting for free IO with %d pending, %d in-flight, %d idle IOs",
+       pgaio_debug(DEBUG2, "waiting for free IO with %d pending, %u in-flight, %u idle IOs",
                                pgaio_my_backend->num_staged_ios,
                                dclist_count(&pgaio_my_backend->in_flight_ios),
                                dclist_count(&pgaio_my_backend->idle_ios));
@@ -797,7 +797,7 @@ pgaio_io_wait_for_free(void)
        if (dclist_count(&pgaio_my_backend->in_flight_ios) == 0)
                ereport(ERROR,
                                errmsg_internal("no free IOs despite no in-flight IOs"),
-                               errdetail_internal("%d pending, %d in-flight, %d idle IOs",
+                               errdetail_internal("%d pending, %u in-flight, %u idle IOs",
                                                                   pgaio_my_backend->num_staged_ios,
                                                                   dclist_count(&pgaio_my_backend->in_flight_ios),
                                                                   dclist_count(&pgaio_my_backend->idle_ios)));
@@ -828,7 +828,7 @@ pgaio_io_wait_for_free(void)
                        case PGAIO_HS_COMPLETED_IO:
                        case PGAIO_HS_SUBMITTED:
                                pgaio_debug_io(DEBUG2, ioh,
-                                                          "waiting for free io with %d in flight",
+                                                          "waiting for free io with %u in flight",
                                                           dclist_count(&pgaio_my_backend->in_flight_ios));
 
                                /*
@@ -1252,7 +1252,7 @@ pgaio_closing_fd(int fd)
                                break;
 
                        pgaio_debug_io(DEBUG2, ioh,
-                                                  "waiting for IO before FD %d gets closed, %d in-flight IOs",
+                                                  "waiting for IO before FD %d gets closed, %u in-flight IOs",
                                                   fd, dclist_count(&pgaio_my_backend->in_flight_ios));
 
                        /* see comment in pgaio_io_wait_for_free() about raciness */
@@ -1288,7 +1288,7 @@ pgaio_shutdown(int code, Datum arg)
                uint64          generation = ioh->generation;
 
                pgaio_debug_io(DEBUG2, ioh,
-                                          "waiting for IO to complete during shutdown, %d in-flight IOs",
+                                          "waiting for IO to complete during shutdown, %u in-flight IOs",
                                           dclist_count(&pgaio_my_backend->in_flight_ios));
 
                /* see comment in pgaio_io_wait_for_free() about raciness */