diff options
Diffstat (limited to 'board/amcc/makalu/makalu.c')
-rw-r--r-- | board/amcc/makalu/makalu.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/board/amcc/makalu/makalu.c b/board/amcc/makalu/makalu.c index 483df662723..34a094fc769 100644 --- a/board/amcc/makalu/makalu.c +++ b/board/amcc/makalu/makalu.c @@ -224,13 +224,14 @@ int misc_init_r(void) int checkboard (void) { - char *s = getenv("serial#"); + char buf[64]; + int i = getenv_f("serial#", buf, sizeof(buf)); printf("Board: Makalu - AMCC PPC405EX Evaluation Board"); - if (s != NULL) { + if (i > 0) { puts(", serial# "); - puts(s); + puts(buf); } putc('\n'); |