diff options
author | Thomas Haller <thaller@redhat.com> | 2014-10-01 11:52:34 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-10-03 11:21:17 +0200 |
commit | 52ccce8c2cf7d1f5dbe93343075d030ce9dba5dc (patch) | |
tree | 4a1c2aec44bf4f8bef17984d0fef199bd4fee116 | |
parent | 20a746f68a0f5e6ea170f86099d71ea5a2c20e49 (diff) | |
download | NetworkManager-52ccce8c2cf7d1f5dbe93343075d030ce9dba5dc.tar.gz |
core/dbus: debug log unix file descriptor when closing private dbus connection
Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r-- | src/nm-dbus-manager.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/nm-dbus-manager.c b/src/nm-dbus-manager.c index 97f9ad56dc..46abe3612d 100644 --- a/src/nm-dbus-manager.c +++ b/src/nm-dbus-manager.c @@ -110,11 +110,12 @@ private_server_message_filter (DBusConnection *conn, void *data) { PrivateServer *s = data; + int fd; /* Clean up after the connection */ if (dbus_message_is_signal (message, DBUS_INTERFACE_LOCAL, "Disconnected")) { - nm_log_dbg (LOGD_CORE, "(%s) closed connection %p on private socket.", - s->tag, conn); + nm_log_dbg (LOGD_CORE, "(%s) closed connection %p on private socket (fd %d).", + s->tag, conn, dbus_connection_get_unix_fd (conn, &fd) ? fd : -1); /* Emit this for the manager */ g_signal_emit (s->manager, @@ -158,8 +159,8 @@ private_server_new_connection (DBusServer *server, sender = g_strdup_printf ("x:y:%d", counter++); g_hash_table_insert (s->connections, dbus_connection_ref (conn), sender); - nm_log_dbg (LOGD_CORE, "(%s) accepted connection %p on private socket (fd %"G_GINT64_FORMAT").", - s->tag, conn, dbus_connection_get_unix_fd (conn, &fd) ? fd : G_MININT64); + nm_log_dbg (LOGD_CORE, "(%s) accepted connection %p on private socket (fd %d).", + s->tag, conn, dbus_connection_get_unix_fd (conn, &fd) ? fd : -1); /* Emit this for the manager */ g_signal_emit (s->manager, |