projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix incorrect use of getenv() before relocation
[oweals/u-boot.git]
/
board
/
prodrive
/
pdnb3
/
pdnb3.c
diff --git
a/board/prodrive/pdnb3/pdnb3.c
b/board/prodrive/pdnb3/pdnb3.c
index 928dd2222d4a07684cf25c6fdbdc2e0b6ed23ecc..3aaebf24396ef894cb3fe6bbb07a38ab346afc3b 100644
(file)
--- a/
board/prodrive/pdnb3/pdnb3.c
+++ b/
board/prodrive/pdnb3/pdnb3.c
@@
-101,13
+101,14
@@
int board_init(void)
*/
int checkboard(void)
{
- char *s = getenv("serial#");
+ char buf[64];
+ int i = getenv_f("serial#", buf, sizeof(buf));
puts("Board: PDNB3");
- if (
s != NULL
) {
+ if (
i > 0
) {
puts(", serial# ");
- puts(
s
);
+ puts(
buf
);
}
putc('\n');