summaryrefslogtreecommitdiff
path: root/src/systemctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-04 16:44:58 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-04 16:44:58 +0200
commit82c121a4754a9d405b07c75796e329942af2ccc5 (patch)
treecb80da758516904383e2558b0cc626f0033e5a6e /src/systemctl.c
parentd264aa332a016501ae164a4316f0acc7da0636f4 (diff)
dbus: complete exec coverage
Diffstat (limited to 'src/systemctl.c')
-rw-r--r--src/systemctl.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/systemctl.c b/src/systemctl.c
index 66d6ef038b..392ecf2c92 100644
--- a/src/systemctl.c
+++ b/src/systemctl.c
@@ -1111,7 +1111,29 @@ static int print_property(const char *name, DBusMessageIter *iter) {
}
return 0;
+ } else if (dbus_message_iter_get_element_type(iter) == DBUS_TYPE_BYTE) {
+ DBusMessageIter sub;
+
+ dbus_message_iter_recurse(iter, &sub);
+
+ if (arg_all ||
+ dbus_message_iter_get_arg_type(&sub) != DBUS_TYPE_INVALID) {
+ printf("%s=", name);
+
+ while (dbus_message_iter_get_arg_type(&sub) != DBUS_TYPE_INVALID) {
+ uint8_t u;
+ assert(dbus_message_iter_get_arg_type(&sub) == DBUS_TYPE_BYTE);
+ dbus_message_iter_get_basic(&sub, &u);
+ printf("%02x", u);
+
+ dbus_message_iter_next(&sub);
+ }
+
+ puts("");
+ }
+
+ return 0;
} else if (dbus_message_iter_get_element_type(iter) == DBUS_TYPE_STRUCT && streq(name, "Paths")) {
DBusMessageIter sub, sub2;