X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=discover%2Fdevice-handler.c;h=d14e54fd2ec99b5ee46cfa87bf0bc4582c6e6d64;hb=9b7a01a40fd9476583fb5f7dfbd4006e45d8e291;hp=ee99f2166da870e6fbb1e368b1a1b9311af611b6;hpb=4466139b7bf4573b6b85555bb1ff7e31fbaaa934;p=petitboot 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); }