Skip to content
Snippets Groups Projects
Commit c06687aa authored by Francois Berder's avatar Francois Berder Committed by Peter Robinson
Browse files

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: default avatarFrancois Berder <fberder@outlook.fr>
Reviewed-by: default avatarPeter Robinson <pbrobinson@gmail.com>
parent 59942219
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment