summaryrefslogtreecommitdiff
path: root/src/core/manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/manager.c')
-rw-r--r--src/core/manager.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/manager.c b/src/core/manager.c
index a578813617..d6c6e2de6d 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -2494,6 +2494,20 @@ bool manager_get_show_status(Manager *m) {
return plymouth_running();
}
+void manager_status_printf(Manager *m, const char *status, const char *format, ...) {
+ va_list ap;
+
+ if (!manager_get_show_status(m))
+ return;
+
+ if (!manager_is_booting_or_shutting_down(m))
+ return;
+
+ va_start(ap, format);
+ status_vprintf(status, true, format, ap);
+ va_end(ap);
+}
+
void watch_init(Watch *w) {
assert(w);