mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
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>
This commit is contained in:
@@ -320,7 +320,6 @@ static char *device_path_string(char *buf, char *end, void *dp, int field_width,
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_CMD_NET
|
|
||||||
static char *mac_address_string(char *buf, char *end, u8 *addr, int field_width,
|
static char *mac_address_string(char *buf, char *end, u8 *addr, int field_width,
|
||||||
int precision, int flags)
|
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,
|
return string(buf, end, ip4_addr, field_width, precision,
|
||||||
flags & ~SPECIAL);
|
flags & ~SPECIAL);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_LIB_UUID
|
#ifdef CONFIG_LIB_UUID
|
||||||
/*
|
/*
|
||||||
@@ -474,7 +472,6 @@ static char *pointer(const char *fmt, char *buf, char *end, void *ptr,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#ifdef CONFIG_CMD_NET
|
|
||||||
case 'm':
|
case 'm':
|
||||||
flags |= SPECIAL;
|
flags |= SPECIAL;
|
||||||
/* Fallthrough */
|
/* Fallthrough */
|
||||||
@@ -493,7 +490,6 @@ static char *pointer(const char *fmt, char *buf, char *end, void *ptr,
|
|||||||
precision, flags);
|
precision, flags);
|
||||||
flags &= ~SPECIAL;
|
flags &= ~SPECIAL;
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
#ifdef CONFIG_LIB_UUID
|
#ifdef CONFIG_LIB_UUID
|
||||||
case 'U':
|
case 'U':
|
||||||
return uuid_string(buf, end, ptr, field_width, precision,
|
return uuid_string(buf, end, ptr, field_width, precision,
|
||||||
|
Reference in New Issue
Block a user