Replace %llu by PRIu64 in AIO io_uring code
authorMichael Paquier <michael@paquier.xyz>
Thu, 12 Jun 2025 23:59:47 +0000 (08:59 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 12 Jun 2025 23:59:47 +0000 (08:59 +0900)
This is a continuation of 15a79c73111f, cleaning up the AIO io_uring
code that has been committed after that while still using %llu.

The code changed here is new in v18, so cleaning things now means less
conflicts if this area of the code changes on backpatch once the 18
stable branch is created.

Reviewed-by: Nathan Bossart <nathandbossart@gmail.com>
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://postgr.es/m/aEZcGCnYFq642q8k@paquier.xyz

src/backend/storage/aio/method_io_uring.c

index cc312b641ca6f5543f6c22d456b816e199b0b8af..b78048328e11351980c1ae51c67734d3a6a9cd9a 100644 (file)
@@ -400,9 +400,9 @@ pgaio_uring_wait_one(PgAioHandle *ioh, uint64 ref_generation)
    while (true)
    {
        pgaio_debug_io(DEBUG3, ioh,
-                      "wait_one io_gen: %llu, ref_gen: %llu, cycle %d",
-                      (long long unsigned) ioh->generation,
-                      (long long unsigned) ref_generation,
+                      "wait_one io_gen: %" PRIu64 ", ref_gen: %" PRIu64 ", cycle %d",
+                      ioh->generation,
+                      ref_generation,
                       waited);
 
        if (pgaio_io_was_recycled(ioh, ref_generation, &state) ||