summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2019-09-24 11:41:23 -0500
committerJoe Hershberger <joe.hershberger@ni.com>2019-12-09 09:47:41 -0600
commit6f8215681a0af8eb58ce4a112834b2ddcd547912 (patch)
treee8c727d4aef9156f1cbc366ae5f46749b9545c9c
parentd724321f99bbaf024a5ec4bacf1520de3bc1ac87 (diff)
downloadu-boot-6f8215681a0af8eb58ce4a112834b2ddcd547912.tar.gz
lib: Always build support for formatting MAC and IP address
Even if not communicating over the network in U-Boot, code may be manipulating and storing IP or MAC addresses to pass to Linux, etc. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
-rw-r--r--lib/vsprintf.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index c6467ecd5f..b4edee29b0 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -320,7 +320,6 @@ static char *device_path_string(char *buf, char *end, void *dp, int field_width,
#endif
#endif
-#ifdef CONFIG_CMD_NET
static char *mac_address_string(char *buf, char *end, u8 *addr, int field_width,
int precision, int flags)
{
@@ -382,7 +381,6 @@ static char *ip4_addr_string(char *buf, char *end, u8 *addr, int field_width,
return string(buf, end, ip4_addr, field_width, precision,
flags & ~SPECIAL);
}
-#endif
#ifdef CONFIG_LIB_UUID
/*
@@ -474,7 +472,6 @@ static char *pointer(const char *fmt, char *buf, char *end, void *ptr,
break;
}
break;
-#ifdef CONFIG_CMD_NET
case 'm':
flags |= SPECIAL;
/* Fallthrough */
@@ -493,7 +490,6 @@ static char *pointer(const char *fmt, char *buf, char *end, void *ptr,
precision, flags);
flags &= ~SPECIAL;
break;
-#endif
#ifdef CONFIG_LIB_UUID
case 'U':
return uuid_string(buf, end, ptr, field_width, precision,