diff options
author | Daniel Mack <daniel@zonque.org> | 2015-02-20 15:16:02 +0100 |
---|---|---|
committer | Daniel Mack <daniel@zonque.org> | 2015-04-24 17:51:08 +0200 |
commit | d71618654a7cf5addfd6d8907ee73afbf8c6dcee (patch) | |
tree | d74b3db8e37165e880c61f83fbe1ba85b105687f /src/libsystemd | |
parent | d6b07ef796abeaf3ab32c70e32be4857fef93481 (diff) |
sd-bus: teach bus_print_property() how to print SD_BUS_TYPE_INT64
Diffstat (limited to 'src/libsystemd')
-rw-r--r-- | src/libsystemd/sd-bus/bus-util.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libsystemd/sd-bus/bus-util.c b/src/libsystemd/sd-bus/bus-util.c index 840878931f..a84d3381cb 100644 --- a/src/libsystemd/sd-bus/bus-util.c +++ b/src/libsystemd/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; |