summaryrefslogtreecommitdiffstats
path: root/discover/device-handler.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-05-05 11:43:13 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-07-16 08:47:46 +0800
commit49367fdd5034a010a3f7f657f8ad205ebf9a01fe (patch)
tree482da25ea43abc2a921581772c6239f87da60111 /discover/device-handler.c
parent2e60c988cb533dbc6c3abc63ae8b295e63dd2c0c (diff)
downloadtalos-petitboot-49367fdd5034a010a3f7f657f8ad205ebf9a01fe.tar.gz
talos-petitboot-49367fdd5034a010a3f7f657f8ad205ebf9a01fe.zip
discover: place countdown earlier in boot status messages
The boot status messages may be trimmed on the right-hand side; In this case, we'll lose the boot countdown. This change moves the boot countdown time to before the arbitrary-length label string. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/device-handler.c')
-rw-r--r--discover/device-handler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c
index dd3aee9..c21eb28 100644
--- a/discover/device-handler.c
+++ b/discover/device-handler.c
@@ -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);
OpenPOWER on IntegriCloud