summaryrefslogtreecommitdiff
path: root/board/amcc/bubinga/bubinga.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/amcc/bubinga/bubinga.c')
-rw-r--r--board/amcc/bubinga/bubinga.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/board/amcc/bubinga/bubinga.c b/board/amcc/bubinga/bubinga.c
index 49eadb9..1ed0aee 100644
--- a/board/amcc/bubinga/bubinga.c
+++ b/board/amcc/bubinga/bubinga.c
@@ -53,13 +53,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: Bubinga - AMCC PPC405EP Evaluation Board");
- if (s != NULL) {
+ if (i > 0) {
puts(", serial# ");
- puts(s);
+ puts(buf);
}
putc('\n');