diff options
Diffstat (limited to 'board/amcc/taishan/taishan.c')
| -rw-r--r-- | board/amcc/taishan/taishan.c | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/board/amcc/taishan/taishan.c b/board/amcc/taishan/taishan.c index 2957a7748..fcaf7fde2 100644 --- a/board/amcc/taishan/taishan.c +++ b/board/amcc/taishan/taishan.c @@ -193,12 +193,13 @@ int misc_init_r(void)  int checkboard (void)  { -	char *s = getenv ("serial#"); +	char buf[64]; +	int i = getenv_f("serial#", buf, sizeof(buf));  	printf ("Board: Taishan - AMCC PPC440GX Evaluation Board"); -	if (s != NULL) { -		puts (", serial# "); -		puts (s); +	if (i > 0) { +		puts(", serial# "); +		puts(buf);  	}  	putc ('\n'); |