diff options
Diffstat (limited to 'board/quad100hd')
| -rw-r--r-- | board/quad100hd/quad100hd.c | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/board/quad100hd/quad100hd.c b/board/quad100hd/quad100hd.c index 2f72d2b1b..6044e8558 100644 --- a/board/quad100hd/quad100hd.c +++ b/board/quad100hd/quad100hd.c @@ -58,16 +58,17 @@ int board_early_init_f(void)   */  int checkboard(void)  { -	char *s = getenv("serial#"); +	char buf[64]; +	int i = getenv_f("serial#", buf, sizeof(buf));  #ifdef DISPLAY_BOARD_INFO  	sys_info_t sysinfo;  #endif  	puts("Board: Quad100hd"); -	if (s != NULL) { +	if (i > 0) {  		puts(", serial# "); -		puts(s); +		puts(buf);  	}  	putc('\n'); |