]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
stm32mp1: use %u in NOTICE message for board info
authorYann Gautier <yann.gautier@st.com>
Tue, 13 Oct 2020 16:03:31 +0000 (18:03 +0200)
committerYann Gautier <yann.gautier@st.com>
Tue, 13 Oct 2020 16:05:23 +0000 (18:05 +0200)
The board information values, read in an OTP are never negative,
%u is then used instead of %d.

Change-Id: I3bc22401fb4d54666ddf56411f75b79aca738492
Signed-off-by: Yann Gautier <yann.gautier@st.com>
plat/st/stm32mp1/stm32mp1_private.c

index 02579d8c65b001b60b962abb5939270ff7217621..bc77ee33420df06c163963fb844d55557dc5700f 100644 (file)
@@ -337,7 +337,7 @@ void stm32mp_print_boardinfo(void)
 
                rev[0] = BOARD_ID2REV(board_id) - 1 + 'A';
                rev[1] = '\0';
-               NOTICE("Board: MB%04x Var%d.%d Rev.%s-%02d\n",
+               NOTICE("Board: MB%04x Var%u.%u Rev.%s-%02u\n",
                       BOARD_ID2NB(board_id),
                       BOARD_ID2VARCPN(board_id),
                       BOARD_ID2VARFG(board_id),