diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2013-10-18 13:46:45 +1300 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-11-27 15:08:25 +0000 |
commit | 969f3918dcc4a4f6ad03dd078f9bb6a108846513 (patch) | |
tree | e0298dd6099a40c4d238ee9ba3f97dd47af79d24 /tools | |
parent | 00993d3702dfdb00970ac62fa793aa60cd7c162e (diff) | |
download | dbus-969f3918dcc4a4f6ad03dd078f9bb6a108846513.tar.gz dbus-969f3918dcc4a4f6ad03dd078f9bb6a108846513.tar.bz2 dbus-969f3918dcc4a4f6ad03dd078f9bb6a108846513.zip |
Support printing unix file descriptors in dbus-send/dbus-monitor
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=70592
Reviewed-by: Chengwei Yang <chengwei.yang@intel.com>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/dbus-print-message.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/dbus-print-message.c b/tools/dbus-print-message.c index 75d00aca..e0dd2da6 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: + { + int fd; + dbus_message_iter_get_basic (iter, &fd); + printf ("unix fd %d\n", fd); + break; + } + default: printf (" (dbus-monitor too dumb to decipher arg type '%c')\n", type); break; |