diff options
Diffstat (limited to 'board/actux1/actux1.c')
| -rw-r--r-- | board/actux1/actux1.c | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/board/actux1/actux1.c b/board/actux1/actux1.c index e73aff8ce..85e3f9e6c 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'); |