From ab78ab731df4e47d6232abbfe0bf88e3b9cc2693 Mon Sep 17 00:00:00 2001 From: Patrik Flykt Date: Wed, 12 Jun 2013 16:54:25 +0300 Subject: client: Fix DBUS_TYPE_UINT16 pretty-printing The previous pretty-printing fix causes another change to be made for DBUS_TYPE_UINT16. --- client/dbus_helpers.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'client') diff --git a/client/dbus_helpers.c b/client/dbus_helpers.c index 5345d05a..0d79f97c 100644 --- a/client/dbus_helpers.c +++ b/client/dbus_helpers.c @@ -35,6 +35,7 @@ void __connmanctl_dbus_print(DBusMessageIter *iter, const char *pre, int arg_type; dbus_bool_t b; unsigned char c; + dbus_uint16_t u16; dbus_uint32_t u; dbus_int32_t i; double d; @@ -98,6 +99,10 @@ void __connmanctl_dbus_print(DBusMessageIter *iter, const char *pre, break; case DBUS_TYPE_UINT16: + dbus_message_iter_get_basic(iter, &u16); + fprintf(stdout, "%u", u16); + break; + case DBUS_TYPE_UINT32: dbus_message_iter_get_basic(iter, &u); fprintf(stdout, "%d", u); -- cgit v1.2.3