Skip to content

Commit d51e7bc

Browse files
shymegagamelaster
authored andcommitted
fix: Fix mismatching format strings when writing
We were using the incorrect format string - this commit fixes that. Signed-off-by: Dom Rodriguez <[email protected]>
1 parent d63612c commit d51e7bc

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
@@ -233,13 +233,13 @@ blisp_return_t blisp_flash_firmware() {
233233

234234
if (ret != BLISP_OK) {
235235
fprintf(stderr,
236-
"Failed to erase flash. Tried to erase from 0x%08X to 0x%08X\n",
236+
"Failed to erase flash. Tried to erase from 0x%08lu to 0x%08lu\n",
237237
parsed_file.payload_address,
238238
parsed_file.payload_address + parsed_file.payload_length + 1);
239239
goto exit2;
240240
}
241241

242-
printf("Flashing the firmware %d bytes @ 0x%08X...\n",
242+
printf("Flashing the firmware %lu bytes @ 0x%08lu...\n",
243243
parsed_file.payload_length, parsed_file.payload_address);
244244
struct blisp_easy_transport data_transport =
245245
blisp_easy_transport_new_from_memory(parsed_file.payload,

0 commit comments

Comments
 (0)