Skip to content

Commit

Permalink
flash/stm32lx: Revert to upstream version.
Browse files Browse the repository at this point in the history
Reintroduce checkpatch problem, because now we can handle them better.

Change-Id: Ib81b9910433ae1a240630b898edb19da8d2d5d83
Signed-off-by: Tim Newsome <tim@sifive.com>
  • Loading branch information
timsifive committed Oct 17, 2023
1 parent a495dd8 commit 2f71800
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/flash/nor/stm32lx.c
Original file line number Diff line number Diff line change
Expand Up @@ -890,10 +890,11 @@ static int stm32lx_get_info(struct flash_bank *bank, struct command_invocation *
if (rev_id == info->revs[i].rev)
rev_str = info->revs[i].str;

if (rev_str)
if (rev_str) {
command_print_sameline(cmd, "%s - Rev: %s", info->device_str, rev_str);
else
} else {
command_print_sameline(cmd, "%s - Rev: unknown (0x%04x)", info->device_str, rev_id);
}

return ERROR_OK;
}
Expand Down

0 comments on commit 2f71800

Please sign in to comment.