Skip to content

Commit cb89bdb

Browse files
committed
Fix compiler warnings: format string
`z` is the length field for `size_t`.
1 parent 20270e5 commit cb89bdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/blisp/src/cmd/write.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,13 @@ blisp_return_t blisp_flash_firmware() {
237237

238238
if (ret != BLISP_OK) {
239239
fprintf(stderr,
240-
"Failed to erase flash. Tried to erase from 0x%08lu to 0x%08lu\n",
240+
"Failed to erase flash. Tried to erase from 0x%08zx to 0x%08zx\n",
241241
parsed_file.payload_address,
242242
parsed_file.payload_address + parsed_file.payload_length + 1);
243243
goto exit2;
244244
}
245245

246-
printf("Flashing the firmware %lu bytes @ 0x%08lu...\n",
246+
printf("Flashing the firmware %zu bytes @ 0x%08zx...\n",
247247
parsed_file.payload_length, parsed_file.payload_address);
248248
struct blisp_easy_transport data_transport =
249249
blisp_easy_transport_new_from_memory(parsed_file.payload,

0 commit comments

Comments
 (0)