mirror of
https://xff.cz/git/u-boot/
synced 2025-08-31 16:22:36 +02:00
sunxi: Fix stable MAC address generation when CMD_NET is disabled
This commit is contained in:
@@ -317,7 +317,7 @@ static char *device_path_string(char *buf, char *end, void *dp, int field_width,
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CMD_NET
|
||||
//#ifdef CONFIG_CMD_NET
|
||||
static char *mac_address_string(char *buf, char *end, u8 *addr, int field_width,
|
||||
int precision, int flags)
|
||||
{
|
||||
@@ -379,7 +379,7 @@ 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
|
||||
//#endif
|
||||
|
||||
#ifdef CONFIG_LIB_UUID
|
||||
/*
|
||||
@@ -471,7 +471,7 @@ static char *pointer(const char *fmt, char *buf, char *end, void *ptr,
|
||||
break;
|
||||
}
|
||||
break;
|
||||
#ifdef CONFIG_CMD_NET
|
||||
//#ifdef CONFIG_CMD_NET
|
||||
case 'm':
|
||||
flags |= SPECIAL;
|
||||
/* Fallthrough */
|
||||
@@ -490,7 +490,7 @@ static char *pointer(const char *fmt, char *buf, char *end, void *ptr,
|
||||
precision, flags);
|
||||
flags &= ~SPECIAL;
|
||||
break;
|
||||
#endif
|
||||
//#endif
|
||||
#ifdef CONFIG_LIB_UUID
|
||||
case 'U':
|
||||
return uuid_string(buf, end, ptr, field_width, precision,
|
||||
|
Reference in New Issue
Block a user