]> git.ozlabs.org Git - petitboot/blobdiff - discover/device-handler.c
discover: place countdown earlier in boot status messages
[petitboot] / discover / device-handler.c
index f5dc32c7abcb4f2239980b1c5a837fd2dd60cc2b..c21eb286d2bd8b47d361fad1c537c883e50fdbbc 100644 (file)
@@ -294,7 +294,7 @@ struct device_handler *device_handler_init(struct discover_server *server,
        return handler;
 }
 
-static void device_handler_reinit(struct device_handler *handler)
+void device_handler_reinit(struct device_handler *handler)
 {
        struct discover_boot_option *opt, *tmp;
        unsigned int i;
@@ -373,7 +373,7 @@ static void countdown_status(struct device_handler *handler,
        status.progress = -1;
        status.detail = NULL;
        status.message = talloc_asprintf(handler,
-                       "Booting %s in %u sec", opt->option->name, sec);
+                       "Booting in %d sec: %s", sec, opt->option->name);
 
        discover_server_notify_boot_status(handler->server, &status);