summaryrefslogtreecommitdiff
path: root/src/core/unit.h
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2013-02-27 22:54:14 +0100
committerMichal Schmidt <mschmidt@redhat.com>2013-02-28 02:23:21 +0100
commit49b1d377263f33991a03235779e50f61273ba649 (patch)
treeb4ef93e4504d1c021af76ba6f3af37f40bc8841f /src/core/unit.h
parent6084e22e57afd588ad205697c0af119d93db1e39 (diff)
core: redefine unit_status_printf()
Take advantage of the fact that almost all callers want to pass unit description as the last parameter. Those who don't can use the more flexible manager_status_printf().
Diffstat (limited to 'src/core/unit.h')
-rw-r--r--src/core/unit.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/unit.h b/src/core/unit.h
index 84aabd5723..9029d6225b 100644
--- a/src/core/unit.h
+++ b/src/core/unit.h
@@ -520,8 +520,7 @@ int unit_add_node_link(Unit *u, const char *what, bool wants);
int unit_coldplug(Unit *u);
-#define unit_status_printf(u, st, fo, ...) \
- manager_status_printf((u)->manager, st, fo, __VA_ARGS__)
+void unit_status_printf(Unit *u, const char *status, const char *unit_status_msg_format);
bool unit_need_daemon_reload(Unit *u);