summaryrefslogtreecommitdiff
path: root/board/t3corp
diff options
context:
space:
mode:
Diffstat (limited to 'board/t3corp')
-rw-r--r--board/t3corp/t3corp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/board/t3corp/t3corp.c b/board/t3corp/t3corp.c
index f2853e4..57f09fa 100644
--- a/board/t3corp/t3corp.c
+++ b/board/t3corp/t3corp.c
@@ -89,13 +89,14 @@ int board_early_init_f(void)
int checkboard(void)
{
- char *s = getenv("serial#");
+ char buf[64];
+ int i = getenv_f("serial#", buf, sizeof(buf));
printf("Board: T3CORP");
- if (s != NULL) {
+ if (i > 0) {
puts(", serial# ");
- puts(s);
+ puts(buf);
}
putc('\n');