aboutsummaryrefslogtreecommitdiff
path: root/board/prodrive/p3p440/p3p440.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/prodrive/p3p440/p3p440.c')
-rw-r--r--board/prodrive/p3p440/p3p440.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/board/prodrive/p3p440/p3p440.c b/board/prodrive/p3p440/p3p440.c
index 020f66dd8..1bb9686a3 100644
--- a/board/prodrive/p3p440/p3p440.c
+++ b/board/prodrive/p3p440/p3p440.c
@@ -122,12 +122,13 @@ 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: P3P440");
- if (s != NULL) {
+ if (i > 0) {
puts(", serial# ");
- puts(s);
+ puts(buf);
}
if (is_monarch()) {