diff options
-rw-r--r-- | discover/device-handler.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c index e991662..46fecd2 100644 --- a/discover/device-handler.c +++ b/discover/device-handler.c @@ -425,6 +425,8 @@ static int default_timeout(void *arg) return 0; } + pb_log("Timeout expired, booting default option %s\n", opt->option->id); + boot(handler, handler->default_boot_option, NULL, handler->dry_run, boot_status, handler); return 0; @@ -439,6 +441,8 @@ static void set_default(struct device_handler *handler, if (!handler->default_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; default_timeout(handler); @@ -820,6 +824,8 @@ void device_handler_cancel_default(struct device_handler *handler) if (!handler->default_boot_option) return; + pb_log("Cancelling default boot option\n"); + handler->default_boot_option = NULL; status.type = BOOT_STATUS_INFO; |