[PATCH] board: st: common: fix the error messages in stboard command

Add missing \n at the end of the error trace
Signed-off-by: Patrick Delaunay patrick.delaunay@foss.st.com ---
board/st/common/cmd_stboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/board/st/common/cmd_stboard.c b/board/st/common/cmd_stboard.c index c1ecd643b0..e12669b862 100644 --- a/board/st/common/cmd_stboard.c +++ b/board/st/common/cmd_stboard.c @@ -92,14 +92,14 @@ static int do_stboard(struct cmd_tbl *cmdtp, int flag, int argc, &otp, sizeof(otp));
if (ret != sizeof(otp)) { - puts("OTP read error"); + puts("OTP read error\n"); return CMD_RET_FAILURE; }
ret = misc_read(dev, STM32_BSEC_LOCK(BSEC_OTP_BOARD), &lock, sizeof(lock)); if (ret != sizeof(lock)) { - puts("LOCK read error"); + puts("LOCK read error\n"); return CMD_RET_FAILURE; }

Hi Patrick
On 4/15/22 11:46, Patrick Delaunay wrote:
Add missing \n at the end of the error trace
Signed-off-by: Patrick Delaunay patrick.delaunay@foss.st.com
board/st/common/cmd_stboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/board/st/common/cmd_stboard.c b/board/st/common/cmd_stboard.c index c1ecd643b0..e12669b862 100644 --- a/board/st/common/cmd_stboard.c +++ b/board/st/common/cmd_stboard.c @@ -92,14 +92,14 @@ static int do_stboard(struct cmd_tbl *cmdtp, int flag, int argc, &otp, sizeof(otp));
if (ret != sizeof(otp)) {
puts("OTP read error");
puts("OTP read error\n");
return CMD_RET_FAILURE; }
ret = misc_read(dev, STM32_BSEC_LOCK(BSEC_OTP_BOARD), &lock, sizeof(lock)); if (ret != sizeof(lock)) {
puts("LOCK read error");
return CMD_RET_FAILURE; }puts("LOCK read error\n");
Reviewed-by: Patrice Chotard patrice.chotard@foss.st.com Thanks Patrice

On 4/15/22 11:46, Patrick Delaunay wrote:
Add missing \n at the end of the error trace
Signed-off-by: Patrick Delaunay patrick.delaunay@foss.st.com
board/st/common/cmd_stboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/board/st/common/cmd_stboard.c b/board/st/common/cmd_stboard.c index c1ecd643b0..e12669b862 100644 --- a/board/st/common/cmd_stboard.c +++ b/board/st/common/cmd_stboard.c @@ -92,14 +92,14 @@ static int do_stboard(struct cmd_tbl *cmdtp, int flag, int argc, &otp, sizeof(otp));
if (ret != sizeof(otp)) {
puts("OTP read error");
puts("OTP read error\n");
return CMD_RET_FAILURE; }
ret = misc_read(dev, STM32_BSEC_LOCK(BSEC_OTP_BOARD), &lock, sizeof(lock)); if (ret != sizeof(lock)) {
puts("LOCK read error");
return CMD_RET_FAILURE; }puts("LOCK read error\n");
Applied to u-boot-stm32
Thanks Patrice
participants (2)
-
Patrice CHOTARD
-
Patrick Delaunay