aboutsummaryrefslogtreecommitdiff
path: root/board/amcc/ebony/ebony.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/amcc/ebony/ebony.c')
-rw-r--r--board/amcc/ebony/ebony.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/board/amcc/ebony/ebony.c b/board/amcc/ebony/ebony.c
index 923dbca71..ad9439497 100644
--- a/board/amcc/ebony/ebony.c
+++ b/board/amcc/ebony/ebony.c
@@ -92,12 +92,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: Ebony - AMCC PPC440GP Evaluation Board");
- if (s != NULL) {
+ if (i > 0) {
puts(", serial# ");
- puts(s);
+ puts(buf);
}
putc('\n');