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