diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-04 16:44:58 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-04 16:44:58 +0200 |
commit | 82c121a4754a9d405b07c75796e329942af2ccc5 (patch) | |
tree | cb80da758516904383e2558b0cc626f0033e5a6e /src/systemctl.c | |
parent | d264aa332a016501ae164a4316f0acc7da0636f4 (diff) |
dbus: complete exec coverage
Diffstat (limited to 'src/systemctl.c')
-rw-r--r-- | src/systemctl.c | 22 |
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; |