diff options
Diffstat (limited to 'board/gdsys/neo/neo.c')
-rw-r--r-- | board/gdsys/neo/neo.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/board/gdsys/neo/neo.c b/board/gdsys/neo/neo.c index a56c2cc987..d21d599fa7 100644 --- a/board/gdsys/neo/neo.c +++ b/board/gdsys/neo/neo.c @@ -53,7 +53,8 @@ int board_early_init_f(void) */ int checkboard(void) { - char *s = getenv("serial#"); + char buf[64]; + int i = getenv_f("serial#", buf, sizeof(buf)); u16 val = in_le16((void *)CONFIG_FPGA_BASE + 2); u8 unit_type; u8 hardware_cpu_ports; @@ -62,9 +63,9 @@ int checkboard(void) printf("Board: CATCenter Neo"); - if (s != NULL) { + if (i > 0) { puts(", serial# "); - puts(s); + puts(buf); } puts("\n "); |