summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2013-07-23 10:59:23 -0700
committerGeoff Levand <geoff@infradead.org>2013-07-23 11:02:13 -0700
commit050e48452f1c67195f8ac630f5893d4806fbe2d2 (patch)
tree7c53032159c7ed7ef1699b1e42ce8b03244a19ce
parent4466139b7bf4573b6b85555bb1ff7e31fbaaa934 (diff)
downloadtalos-petitboot-050e48452f1c67195f8ac630f5893d4806fbe2d2.tar.gz
talos-petitboot-050e48452f1c67195f8ac630f5893d4806fbe2d2.zip
discover: Log autoboot timeout
Signed-off-by: Geoff Levand <geoff@infradead.org>
-rw-r--r--discover/device-handler.c8
1 files changed, 5 insertions, 3 deletions
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);
}
OpenPOWER on IntegriCloud