From 49367fdd5034a010a3f7f657f8ad205ebf9a01fe Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Mon, 5 May 2014 11:43:13 +0800 Subject: [PATCH 1/1] 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 --- discover/device-handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2