aboutsummaryrefslogtreecommitdiff
path: root/board/prodrive/p3mx/p3mx.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/prodrive/p3mx/p3mx.c')
-rw-r--r--board/prodrive/p3mx/p3mx.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/board/prodrive/p3mx/p3mx.c b/board/prodrive/p3mx/p3mx.c
index 05eca52e0..09e4f823f 100644
--- a/board/prodrive/p3mx/p3mx.c
+++ b/board/prodrive/p3mx/p3mx.c
@@ -335,13 +335,14 @@ void after_reloc (ulong dest_addr, gd_t * gd)
int checkboard (void)
{
- char *s = getenv("serial#");
+ char buf[64];
+ int i = getenv_f("serial#", buf, sizeof(buf));
printf("Board: %s", CONFIG_SYS_BOARD_NAME);
- if (s != NULL) {
+ if (i > 0) {
puts(", serial# ");
- puts(s);
+ puts(buf);
}
putc('\n');