Skip to content

Commit c1f5e29

Browse files
7134956bbogush
authored andcommitted
firmware: Fix typos in debug messages. Unused include in main.c
Change-Id: I685f9ccca4873fceb555a3717dc165f14cce9fea
1 parent 322a849 commit c1f5e29

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

firmware/programmer/main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include "jtag.h"
1212
#include "version.h"
1313
#include "clock.h"
14-
#include "spi_flash.h"
1514
#include <stdio.h>
1615

1716
int main()

firmware/programmer/nand_programmer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ static int _np_cmd_nand_erase(np_prog_t *prog)
468468
skip_bb = erase_cmd->flags.skip_bb;
469469
inc_spare = erase_cmd->flags.inc_spare;
470470

471-
DEBUG_PRINT("Erase at 0x%" PRIx64 " %" PRIx64 " bytes command\r\n", addr,
471+
DEBUG_PRINT("Erase at 0x%" PRIx64 " 0x%" PRIx64 " bytes command\r\n", addr,
472472
len);
473473

474474
pages_in_block = prog->chip_info.block_size / prog->chip_info.page_size;
@@ -1056,7 +1056,7 @@ static void np_print_chip_info(np_prog_t *prog)
10561056
{
10571057
DEBUG_PRINT("Page size: %lu\r\n", prog->chip_info.page_size);
10581058
DEBUG_PRINT("Block size: %lu\r\n", prog->chip_info.block_size);
1059-
DEBUG_PRINT("Total size: %" PRIx64 "\r\n", prog->chip_info.total_size);
1059+
DEBUG_PRINT("Total size: 0x%" PRIx64 "\r\n", prog->chip_info.total_size);
10601060
DEBUG_PRINT("Spare size: %lu\r\n", prog->chip_info.spare_size);
10611061
DEBUG_PRINT("Bad block mark offset: %d\r\n", prog->chip_info.bb_mark_off);
10621062
}

0 commit comments

Comments
 (0)