summaryrefslogtreecommitdiff
path: root/board/gdsys/405ep/dlvision-10g.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/gdsys/405ep/dlvision-10g.c')
-rw-r--r--board/gdsys/405ep/dlvision-10g.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/board/gdsys/405ep/dlvision-10g.c b/board/gdsys/405ep/dlvision-10g.c
index 0388541..ecba66e 100644
--- a/board/gdsys/405ep/dlvision-10g.c
+++ b/board/gdsys/405ep/dlvision-10g.c
@@ -225,15 +225,16 @@ static void print_fpga_info(unsigned dev)
*/
int checkboard(void)
{
- char *s = getenv("serial#");
+ char buf[64];
+ int i = getenv_f("serial#", buf, sizeof(buf));
printf("Board: ");
printf("DLVision 10G");
- if (s != NULL) {
+ if (i > 0) {
puts(", serial# ");
- puts(s);
+ puts(buf);
}
puts("\n");