From 2f71800cbb955441cd32aaf450dd21d48929f1a9 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Tue, 17 Oct 2023 14:22:17 -0700 Subject: [PATCH] flash/stm32lx: Revert to upstream version. Reintroduce checkpatch problem, because now we can handle them better. Change-Id: Ib81b9910433ae1a240630b898edb19da8d2d5d83 Signed-off-by: Tim Newsome --- src/flash/nor/stm32lx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/flash/nor/stm32lx.c b/src/flash/nor/stm32lx.c index 0c76ed718..1459e942d 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; }