aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoïc Minier <loic.minier@linaro.org>2011-08-17 22:57:11 +0200
committerJohn Rigby <john.rigby@linaro.org>2011-08-17 15:35:08 -0600
commit01915ec14ee46a4ddfc1f6ea996096e92ff7e802 (patch)
tree597830496a603c35be6972bcef9ec6801c1a4f9d
parent88dc9b97249963a59f8eea37f2c7f634ac1c5619 (diff)
downloadu-boot-linaro-oldmaster-2011.08.2plus.tar.gz
pxecfg: Lower case MAC address to match pxelinuxoldmaster-2011.08.2plus
Cc: patches@linaro.org Signed-off-by: Loïc Minier <loic.minier@linaro.org>
-rw-r--r--common/cmd_pxecfg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/cmd_pxecfg.c b/common/cmd_pxecfg.c
index 84b0d25..2f8714c 100644
--- a/common/cmd_pxecfg.c
+++ b/common/cmd_pxecfg.c
@@ -65,9 +65,12 @@ static void format_mac_pxecfg(char **outbuf)
* but in practice always 1 for Ethernet */
sprintf(*outbuf, "01-%s", ethaddr);
+ /* convert colons to dashes and lower case the MAC address */
for (p = *outbuf + 3; *p; p++) {
if (*p == ':')
*p = '-';
+ else
+ *p = tolower(*p);
}
}