diff options
author | Francois Berder <fberder@outlook.fr> | 2024-07-09 14:20:48 +0200 |
---|---|---|
committer | Peter Robinson <pbrobinson@gmail.com> | 2024-07-12 11:42:30 +0100 |
commit | c06687aa0649d1ecdf42f3d09e2612b228554b4b (patch) | |
tree | 76bab122311361da4b9c40d47d59ad49d4328f18 /board/raspberrypi | |
parent | 599422192ed7ad5460a4ac5e30683854eb0a137c (diff) | |
download | u-boot-c06687aa0649d1ecdf42f3d09e2612b228554b4b.tar.gz u-boot-c06687aa0649d1ecdf42f3d09e2612b228554b4b.tar.bz2 u-boot-c06687aa0649d1ecdf42f3d09e2612b228554b4b.zip |
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 <fberder@outlook.fr>
Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
Diffstat (limited to 'board/raspberrypi')
-rw-r--r-- | board/raspberrypi/rpi/rpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |