aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2023-10-17 14:22:17 -0700
committerTim Newsome <tim@sifive.com>2023-10-17 14:22:17 -0700
commit2f71800cbb955441cd32aaf450dd21d48929f1a9 (patch)
treeb545899966be49d10766f4d5d896328f22104994
parenta495dd854ce2e857a583125a31527a47320ec6b9 (diff)
downloadriscv-openocd-2f71800cbb955441cd32aaf450dd21d48929f1a9.zip
riscv-openocd-2f71800cbb955441cd32aaf450dd21d48929f1a9.tar.gz
riscv-openocd-2f71800cbb955441cd32aaf450dd21d48929f1a9.tar.bz2
flash/stm32lx: Revert to upstream version.
Reintroduce checkpatch problem, because now we can handle them better. Change-Id: Ib81b9910433ae1a240630b898edb19da8d2d5d83 Signed-off-by: Tim Newsome <tim@sifive.com>
-rw-r--r--src/flash/nor/stm32lx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/flash/nor/stm32lx.c b/src/flash/nor/stm32lx.c
index 0c76ed7..1459e94 100644
--- a/src/flash/nor/stm32lx.c
+++ b/src/flash/nor/stm32lx.c
@@ -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;
}