summaryrefslogtreecommitdiff
path: root/board/zeus
diff options
context:
space:
mode:
Diffstat (limited to 'board/zeus')
-rw-r--r--board/zeus/zeus.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/board/zeus/zeus.c b/board/zeus/zeus.c
index 7e33d3f..18cb85f 100644
--- a/board/zeus/zeus.c
+++ b/board/zeus/zeus.c
@@ -161,7 +161,8 @@ int misc_init_r(void)
*/
int checkboard(void)
{
- char *s = getenv("serial#");
+ char buf[64];
+ int i = getenv_f("serial#", buf, sizeof(buf));
puts("Board: Zeus-");
@@ -172,9 +173,9 @@ int checkboard(void)
puts(" of BulletEndPoint");
- if (s != NULL) {
+ if (i > 0) {
puts(", serial# ");
- puts(s);
+ puts(buf);
}
putc('\n');