summaryrefslogtreecommitdiffstats
path: root/discover/user-event.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-01-22 07:53:46 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-01-22 10:21:31 +0800
commitf66b0807cace1cfda192810861ba6309bf6fa9fe (patch)
treedacaedf37a5dc0fb4fd7dc1077a55dbee44fc82c /discover/user-event.c
parent2ad0e66f61e8f8488cff208f8bb7f5127ec9f813 (diff)
downloadtalos-petitboot-f66b0807cace1cfda192810861ba6309bf6fa9fe.tar.gz
talos-petitboot-f66b0807cace1cfda192810861ba6309bf6fa9fe.zip
discover: Use lowercase hex chars for MAC-address-based conf requests
The de-facto PXELINUX standard specifies lowercase characters for the MAC addresses, so change our reuqests to suit. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/user-event.c')
-rw-r--r--discover/user-event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/user-event.c b/discover/user-event.c
index dc671d9..1e366ee 100644
--- a/discover/user-event.c
+++ b/discover/user-event.c
@@ -208,7 +208,7 @@ static char *parse_mac_addr(struct discover_context *ctx, const char *mac)
mac_addr_arr + 2, mac_addr_arr + 3, mac_addr_arr + 4,
mac_addr_arr + 5);
- mac_addr = talloc_asprintf(ctx, "01-%02X-%02X-%02X-%02X-%02X-%02X",
+ mac_addr = talloc_asprintf(ctx, "01-%02x-%02x-%02x-%02x-%02x-%02x",
mac_addr_arr[0], mac_addr_arr[1], mac_addr_arr[2],
mac_addr_arr[3], mac_addr_arr[4], mac_addr_arr[5]);
OpenPOWER on IntegriCloud