From cb89bdb53735b571d0c183112fcbfcd2627ebbee Mon Sep 17 00:00:00 2001 From: "Berk D. Demir" Date: Wed, 9 Jul 2025 22:59:07 -0700 Subject: [PATCH] Fix compiler warnings: format string `z` is the length field for `size_t`. --- tools/blisp/src/cmd/write.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/blisp/src/cmd/write.c b/tools/blisp/src/cmd/write.c index d28f48a..fde093f 100644 --- a/tools/blisp/src/cmd/write.c +++ b/tools/blisp/src/cmd/write.c @@ -237,13 +237,13 @@ blisp_return_t blisp_flash_firmware() { if (ret != BLISP_OK) { fprintf(stderr, - "Failed to erase flash. Tried to erase from 0x%08lu to 0x%08lu\n", + "Failed to erase flash. Tried to erase from 0x%08zx to 0x%08zx\n", parsed_file.payload_address, parsed_file.payload_address + parsed_file.payload_length + 1); goto exit2; } - printf("Flashing the firmware %lu bytes @ 0x%08lu...\n", + printf("Flashing the firmware %zu bytes @ 0x%08zx...\n", parsed_file.payload_length, parsed_file.payload_address); struct blisp_easy_transport data_transport = blisp_easy_transport_new_from_memory(parsed_file.payload,