summaryrefslogtreecommitdiffstats
path: root/board/amcc/redwood/redwood.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/amcc/redwood/redwood.c')
-rw-r--r--board/amcc/redwood/redwood.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/board/amcc/redwood/redwood.c b/board/amcc/redwood/redwood.c
index bb7565e2e4..8ca14954c7 100644
--- a/board/amcc/redwood/redwood.c
+++ b/board/amcc/redwood/redwood.c
@@ -200,12 +200,13 @@ int board_early_init_f(void)
int checkboard(void)
{
- char *s = getenv("serial#");
+ char buf[64];
+ int i = getenv_f("serial#", buf, sizeof(buf));
printf("Board: Redwood - AMCC 460SX Reference Board");
- if (s != NULL) {
+ if (i > 0) {
puts(", serial# ");
- puts(s);
+ puts(buf);
}
putc('\n');
OpenPOWER on IntegriCloud