From 448d81bfd3b6430a65515e07d45e08fe459d92e2 Mon Sep 17 00:00:00 2001 From: Dom Rodriguez Date: Sat, 16 Nov 2024 15:05:05 +0000 Subject: [PATCH] fix: Fix mismatching format strings when writing We were using the incorrect format string - this commit fixes that. Signed-off-by: Dom Rodriguez --- 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 ef9d446..21c387f 100644 --- a/tools/blisp/src/cmd/write.c +++ b/tools/blisp/src/cmd/write.c @@ -222,13 +222,13 @@ blisp_return_t blisp_flash_firmware() { if (ret != BLISP_OK) { fprintf(stderr, - "Failed to erase flash. Tried to erase from 0x%08X to 0x%08X\n", + "Failed to erase flash. Tried to erase from 0x%08lu to 0x%08lu\n", parsed_file.payload_address, parsed_file.payload_address + parsed_file.payload_length + 1); goto exit2; } - printf("Flashing the firmware %d bytes @ 0x%08X...\n", + printf("Flashing the firmware %lu bytes @ 0x%08lu...\n", parsed_file.payload_length, parsed_file.payload_address); struct blisp_easy_transport data_transport = blisp_easy_transport_new_from_memory(parsed_file.payload,