[systemd-commits] src/libsystemd

Daniel Mack zonque at kemper.freedesktop.org
Fri Apr 24 08:51:23 PDT 2015


 src/libsystemd/sd-bus/bus-util.c |   12 ++++++++++++
 1 file changed, 12 insertions(+)

New commits:
commit d71618654a7cf5addfd6d8907ee73afbf8c6dcee
Author: Daniel Mack <daniel at zonque.org>
Date:   Fri Feb 20 15:16:02 2015 +0100

    sd-bus: teach bus_print_property() how to print SD_BUS_TYPE_INT64

diff --git a/src/libsystemd/sd-bus/bus-util.c b/src/libsystemd/sd-bus/bus-util.c
index 8408789..a84d338 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;
 



More information about the systemd-commits mailing list