From: Francois Berder Date: Tue, 9 Jul 2024 12:20:48 +0000 (+0200) Subject: board: raspberrypi: Fix format specifier for printing rev_scheme X-Git-Url: http://git.dujemihanovic.xyz/html/static/git-logo.png?a=commitdiff_plain;h=c06687aa0649d1ecdf42f3d09e2612b228554b4b;p=u-boot.git board: raspberrypi: Fix format specifier for printing rev_scheme rev_scheme is an unsigned integer and must not be printed as a signed integer. Signed-off-by: Francois Berder Reviewed-by: Peter Robinson --- diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c index 2851ebc985..5db60554b6 100644 --- a/board/raspberrypi/rpi/rpi.c +++ b/board/raspberrypi/rpi/rpi.c @@ -382,7 +382,7 @@ static void set_board_info(void) snprintf(s, sizeof(s), "0x%X", revision); env_set("board_revision", s); - snprintf(s, sizeof(s), "%d", rev_scheme); + snprintf(s, sizeof(s), "%u", rev_scheme); env_set("board_rev_scheme", s); /* Can't rename this to board_rev_type since it's an ABI for scripts */ snprintf(s, sizeof(s), "0x%X", rev_type);