agent: Add missing format specifiers to debug messages
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Tue, 17 Dec 2013 09:35:04 +0000 (09:35 +0000)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Wed, 18 Dec 2013 22:50:34 +0000 (17:50 -0500)
agent/agent.c

index 6d1bc2b..0ebbf1e 100644 (file)
@@ -2986,13 +2986,13 @@ _priv_set_socket_tos (NiceAgent *agent, NiceSocket *sock, gint tos)
 {
   if (setsockopt (g_socket_get_fd (sock->fileno), IPPROTO_IP,
           IP_TOS, (const char *) &tos, sizeof (tos)) < 0) {
-    nice_debug ("Agent %p: Could not set socket ToS", agent,
+    nice_debug ("Agent %p: Could not set socket ToS: %s", agent,
         g_strerror (errno));
   }
 #ifdef IPV6_TCLASS
   if (setsockopt (g_socket_get_fd (sock->fileno), IPPROTO_IPV6,
           IPV6_TCLASS, (const char *) &tos, sizeof (tos)) < 0) {
-    nice_debug ("Agent %p: Could not set IPV6 socket ToS", agent,
+    nice_debug ("Agent %p: Could not set IPV6 socket ToS: %s", agent,
         g_strerror (errno));
   }
 #endif