:: commit 4aca7dba3a1d6bc95b5b14524b31e9a4de4317f3

Mintsuki <mintsuki@protonmail.com> — 2025-07-12 13:36

parents: 83e91e2558

host/limine: Fix some mismatched printf format specifiers

diff --git a/host/limine.c b/host/limine.c
index 1599f1d1..94900051 100644
--- a/host/limine.c
+++ b/host/limine.c
@@ -804,7 +804,7 @@ static int bios_install(int argc, char *argv[]) {
 
             if (ENDSWAP(gpt_entry.starting_lba) > UINT32_MAX) {
                 if (!quiet) {
-                    fprintf(stderr, "Starting LBA of partition %zu is greater than UINT32_MAX, will not convert GPT.\n", i + 1);
+                    fprintf(stderr, "Starting LBA of partition %" PRIi64 " is greater than UINT32_MAX, will not convert GPT.\n", i + 1);
                 }
                 goto no_mbr_conv;
             }
@@ -813,7 +813,7 @@ static int bios_install(int argc, char *argv[]) {
 
             if (ENDSWAP(gpt_entry.ending_lba) > UINT32_MAX) {
                 if (!quiet) {
-                    fprintf(stderr, "Ending LBA of partition %zu is greater than UINT32_MAX, will not convert GPT.\n", i + 1);
+                    fprintf(stderr, "Ending LBA of partition %" PRIi64 " is greater than UINT32_MAX, will not convert GPT.\n", i + 1);
                 }
                 goto no_mbr_conv;
             }
@@ -824,7 +824,7 @@ static int bios_install(int argc, char *argv[]) {
                                     ENDSWAP(gpt_entry.partition_type_guid[1]));
             if (type == -1) {
                 if (!quiet) {
-                    fprintf(stderr, "Cannot convert partition type for partition %zu, will not convert GPT.\n", i + 1);
+                    fprintf(stderr, "Cannot convert partition type for partition %" PRIi64 ", will not convert GPT.\n", i + 1);
                 }
                 goto no_mbr_conv;
             }
tab: 248 wrap: offon