aboutsummaryrefslogtreecommitdiff
path: root/board/zeus/zeus.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/zeus/zeus.c')
-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 7e33d3f38..18cb85faf 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');