diff options
author | Daniel Mack <daniel@zonque.org> | 2015-02-20 15:16:02 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-03-13 18:23:26 +0100 |
commit | 7c94b3e78c875c77893421e9e337eeafc4d47b2b (patch) | |
tree | 7a79ba42ad5203e7f1a5717ef5cd78440bdb0a96 /src/libelogind/sd-bus/bus-util.c | |
parent | 6d224ff665195f47c942599b21e0d959bc07ca8f (diff) |
sd-bus: teach bus_print_property() how to print SD_BUS_TYPE_INT64
Diffstat (limited to 'src/libelogind/sd-bus/bus-util.c')
-rw-r--r-- | src/libelogind/sd-bus/bus-util.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libelogind/sd-bus/bus-util.c b/src/libelogind/sd-bus/bus-util.c index dcad70198..164fbf8f8 100644 --- a/src/libelogind/sd-bus/bus-util.c +++ b/src/libelogind/sd-bus/bus-util.c @@ -722,6 +722,18 @@ int bus_print_property(const char *name, sd_bus_message *property, bool all) { return 1; } + case SD_BUS_TYPE_INT64: { + int64_t i; + + r = sd_bus_message_read_basic(property, type, &i); + if (r < 0) + return r; + + printf("%s=%lld\n", name, (long long) i); + + return 1; + } + case SD_BUS_TYPE_UINT32: { uint32_t u; |