summaryrefslogtreecommitdiff
path: root/board/actux1
diff options
context:
space:
mode:
Diffstat (limited to 'board/actux1')
-rw-r--r--board/actux1/actux1.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/board/actux1/actux1.c b/board/actux1/actux1.c
index e73aff8..85e3f9e 100644
--- a/board/actux1/actux1.c
+++ b/board/actux1/actux1.c
@@ -89,14 +89,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-1 rev.");
putc (ACTUX1_BOARDREL + 'A' - 1);
- if (s != NULL) {
- puts (", serial# ");
- puts (s);
+ if (i > 0) {
+ puts(", serial# ");
+ puts(buf);
}
putc ('\n');