summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2013-06-12 13:54:25 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-06-13 07:33:35 (GMT)
commitab78ab731df4e47d6232abbfe0bf88e3b9cc2693 (patch)
tree6b4bc4763ca0b9a0b88e46f42cece5f5be7991e8
parent475a695684d0a417a5705226d5d7110268c044f8 (diff)
downloadconnman-ab78ab731df4e47d6232abbfe0bf88e3b9cc2693.zip
connman-ab78ab731df4e47d6232abbfe0bf88e3b9cc2693.tar.gz
connman-ab78ab731df4e47d6232abbfe0bf88e3b9cc2693.tar.bz2
client: Fix DBUS_TYPE_UINT16 pretty-printing
The previous pretty-printing fix causes another change to be made for DBUS_TYPE_UINT16.
-rw-r--r--client/dbus_helpers.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/dbus_helpers.c b/client/dbus_helpers.c
index 5345d05..0d79f97 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);