summaryrefslogtreecommitdiff
path: root/board/micronas/vct
diff options
context:
space:
mode:
Diffstat (limited to 'board/micronas/vct')
-rw-r--r--board/micronas/vct/vct.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/board/micronas/vct/vct.c b/board/micronas/vct/vct.c
index 7fc3507..a8eef37 100644
--- a/board/micronas/vct/vct.c
+++ b/board/micronas/vct/vct.c
@@ -80,8 +80,9 @@ phys_size_t initdram(int board_type)
int checkboard(void)
{
+ char buf[64];
+ int i = getenv_f("serial#", buf, sizeof(buf));
u32 config0 = read_c0_prid();
- char *s = getenv("serial#");
if ((config0 & 0xff0000) == PRID_COMP_LEGACY
&& (config0 & 0xff00) == PRID_IMP_LX4280) {
@@ -108,9 +109,9 @@ int checkboard(void)
}
printf("Board: Micronas VCT " BOARD_NAME BOARD_NAME_ADD);
- if (s != NULL) {
+ if (i > 0) {
puts(", serial# ");
- puts(s);
+ puts(buf);
}
putc('\n');