]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: st: common: fix the error messages in stboard command
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Fri, 15 Apr 2022 09:46:50 +0000 (11:46 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 10 May 2022 08:56:39 +0000 (10:56 +0200)
Add missing \n at the end of the error trace

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
board/st/common/cmd_stboard.c

index c1ecd643b00feb2b780d24d17473afe0d4dded88..e12669b8628d49947b14d6418375335ac8c3b53a 100644 (file)
@@ -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;
        }