diff options
Diffstat (limited to 'board/actux2/actux2.c')
-rw-r--r-- | board/actux2/actux2.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/board/actux2/actux2.c b/board/actux2/actux2.c index d6aaad6201a..0d67f80b97e 100644 --- a/board/actux2/actux2.c +++ b/board/actux2/actux2.c @@ -96,14 +96,15 @@ int board_init (void) */ int checkboard (void) { - char *s = getenv ("serial#"); + char buf[64]; + int i = getenv_f("serial#", buf, sizeof(buf)); puts ("Board: AcTux-2 rev."); putc (ACTUX2_BOARDREL + 'A' - 1); - if (s != NULL) { - puts (", serial# "); - puts (s); + if (i > 0) { + puts(", serial# "); + puts(buf); } putc ('\n'); |