Skip to content

Commit

Permalink
firmware: Fix typos in debug messages. Unused include in main.c
Browse files Browse the repository at this point in the history
Change-Id: I685f9ccca4873fceb555a3717dc165f14cce9fea
  • Loading branch information
7134956 authored and bbogush committed May 14, 2023
1 parent 322a849 commit c1f5e29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion firmware/programmer/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "jtag.h"
#include "version.h"
#include "clock.h"
#include "spi_flash.h"
#include <stdio.h>

int main()
Expand Down
4 changes: 2 additions & 2 deletions firmware/programmer/nand_programmer.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ static int _np_cmd_nand_erase(np_prog_t *prog)
skip_bb = erase_cmd->flags.skip_bb;
inc_spare = erase_cmd->flags.inc_spare;

DEBUG_PRINT("Erase at 0x%" PRIx64 " %" PRIx64 " bytes command\r\n", addr,
DEBUG_PRINT("Erase at 0x%" PRIx64 " 0x%" PRIx64 " bytes command\r\n", addr,
len);

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

0 comments on commit c1f5e29

Please sign in to comment.