p2p-gdbus: Remove unnecessary connection capabilities checks 85/271385/1
authorAdam Michalski <a.michalski2@partner.samsung.com>
Fri, 18 Feb 2022 11:59:10 +0000 (12:59 +0100)
committerAdam Michalski <a.michalski2@partner.samsung.com>
Fri, 18 Feb 2022 12:04:08 +0000 (13:04 +0100)
Since we don't use fd passing in our tests, the checks for fd passing
capabilities have been removed.

Change-Id: I62703284cf71c31aa679ed4e1807336ddbb97870

benchmark/p2p-gdbus.c

index 407a3d70a4dfae00bee77a0d9d695390bebd0efa..1eb137fa0ab9a56772d20dc1a6afb8c6b0f22c00 100644 (file)
@@ -213,11 +213,7 @@ static gboolean on_new_connection(GDBusServer *server,
                s = g_credentials_to_string(credentials);
 
        if (state->verbose)
-               g_print("Client connected.\n"
-                               "Peer credentials: %s\n"
-                               "Negotiated capabilities: unix-fd-passing=%d\n",
-                               s,
-                               g_dbus_connection_get_capabilities(connection) & G_DBUS_CAPABILITY_FLAGS_UNIX_FD_PASSING);
+               g_print("Server: Client connected. Peer credentials: %s\n", s);
 
        g_object_ref(connection);
        g_signal_connect(connection, "closed", G_CALLBACK(connection_closed), (gpointer)state);
@@ -363,9 +359,7 @@ void Send(int size, const char *name, const char *path, const char *number, bool
        }
 
        if (verbose) {
-               g_print("Client connected.\n"
-                       "Negotiated capabilities: unix-fd-passing=%d\n",
-                       g_dbus_connection_get_capabilities(connection) & G_DBUS_CAPABILITY_FLAGS_UNIX_FD_PASSING);
+               g_print("Client connected.\n");
        }
 
        sleep(2);