From 179f28e2f8fd5cbf28027107446a9ffa3a1df259 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Fri, 18 Oct 2013 13:46:45 +1300 Subject: [PATCH] Support printing unix file descriptors in dbus-send/dbus-monitor --- tools/dbus-print-message.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/dbus-print-message.c b/tools/dbus-print-message.c index 75d00ac..3905abb 100644 --- a/tools/dbus-print-message.c +++ b/tools/dbus-print-message.c @@ -346,7 +346,15 @@ print_iter (DBusMessageIter *iter, dbus_bool_t literal, int depth) printf("}\n"); break; } - + + case DBUS_TYPE_UNIX_FD: + { + dbus_uint32_t val; + dbus_message_iter_get_basic (iter, &val); + printf ("unix fd %u\n", val); + break; + } + default: printf (" (dbus-monitor too dumb to decipher arg type '%c')\n", type); break; -- 1.8.3.2