X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fuser-event.c;h=1e366ee387c6cad138998c2686d6ae0ef0832a51;hp=7acd237234848d453740592cc0d16c2cad09a78d;hb=140f5b13c7513b2d594457cc8d7d0cb1a7d844a4;hpb=f2acf9d2573ebbfb7478e97c4066c128ddaa5a18 diff --git a/discover/user-event.c b/discover/user-event.c index 7acd237..1e366ee 100644 --- a/discover/user-event.c +++ b/discover/user-event.c @@ -89,9 +89,9 @@ static struct resource *user_event_resource(struct discover_boot_option *opt, return NULL; } - boot_file = event_get_param(event, "boot_file"); + boot_file = event_get_param(event, "bootfile"); if (!boot_file) { - pb_log("%s: boot_file not found\n", __func__); + pb_log("%s: bootfile not found\n", __func__); return NULL; } @@ -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]);