mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
599422192e
commit
c06687aa06
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue