From: Geoff Levand Date: Tue, 23 Jul 2013 17:59:23 +0000 (-0700) Subject: discover: Log autoboot timeout X-Git-Tag: v1.0.0~540 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=050e48452f1c67195f8ac630f5893d4806fbe2d2 discover: Log autoboot timeout Signed-off-by: Geoff Levand --- diff --git a/discover/device-handler.c b/discover/device-handler.c index ee99f21..d14e54f 100644 --- a/discover/device-handler.c +++ b/discover/device-handler.c @@ -400,7 +400,7 @@ static void countdown_status(struct device_handler *handler, status.progress = -1; status.detail = NULL; status.message = talloc_asprintf(handler, - "Booting %s in %d sec", opt->option->name, sec); + "Booting %s in %u sec", opt->option->name, sec); discover_server_notify_boot_status(handler->server, &status); @@ -442,10 +442,12 @@ static void set_default(struct device_handler *handler, if (!handler->autoboot_enabled) return; - pb_log("Boot option %s set as default\n", opt->option->id); - handler->default_boot_option = opt; handler->sec_to_boot = DEFAULT_BOOT_TIMEOUT_SEC; + + pb_log("Boot option %s set as default, timeout %u sec.\n", + opt->option->id, handler->sec_to_boot); + default_timeout(handler); }