diff options
Diffstat (limited to 'board/gdsys/intip/intip.c')
-rw-r--r-- | board/gdsys/intip/intip.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/board/gdsys/intip/intip.c b/board/gdsys/intip/intip.c index aa85ea416a..0132b2595d 100644 --- a/board/gdsys/intip/intip.c +++ b/board/gdsys/intip/intip.c @@ -124,7 +124,8 @@ int get_cpu_num(void) int checkboard(void) { - char *s = getenv("serial#"); + char buf[64]; + int i = getenv_f("serial#", buf, sizeof(buf)); #ifdef CONFIG_DEVCONCENTER printf("Board: DevCon-Center"); @@ -132,9 +133,9 @@ int checkboard(void) printf("Board: Intip"); #endif - if (s != NULL) { + if (i > 0) { puts(", serial# "); - puts(s); + puts(buf); } putc('\n'); |