summaryrefslogtreecommitdiff
path: root/board/gw8260/gw8260.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/gw8260/gw8260.c')
-rw-r--r--board/gw8260/gw8260.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/board/gw8260/gw8260.c b/board/gw8260/gw8260.c
index 28f5ca99e87..77a1e1d3ac1 100644
--- a/board/gw8260/gw8260.c
+++ b/board/gw8260/gw8260.c
@@ -214,13 +214,13 @@ const iop_conf_t iop_conf_tab[4][32] = {
/*********************************************************************/
int checkboard (void)
{
- char *str;
+ char buf[64];
+ int i = getenv_f("serial#", buf, sizeof(buf));
puts ("Board: Advent Networks gw8260\n");
- str = getenv ("serial#");
- if (str != NULL) {
- printf ("SN: %s\n", str);
+ if (i > 0) {
+ printf("SN: %s\n", buf);
}
return 0;
}