Commit f2d6ae2f authored by Philip Withnall's avatar Philip Withnall Committed by Olivier Crête
Browse files

agent: Add missing format specifiers to debug messages

parent e5567a0b
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment