summaryrefslogtreecommitdiff
path: root/board/amcc/makalu/makalu.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/amcc/makalu/makalu.c')
-rw-r--r--board/amcc/makalu/makalu.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/board/amcc/makalu/makalu.c b/board/amcc/makalu/makalu.c
index 483df66..34a094f 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');