[asterisk-commits] simon.perreault: branch group/v6-new r273973 - /team/group/v6-new/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jul 5 09:37:43 CDT 2010


Author: simon.perreault
Date: Mon Jul  5 09:37:40 2010
New Revision: 273973

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=273973
Log:
More verbose error with strerror()

Modified:
    team/group/v6-new/main/netsock2.c

Modified: team/group/v6-new/main/netsock2.c
URL: http://svnview.digium.com/svn/asterisk/team/group/v6-new/main/netsock2.c?view=diff&rev=273973&r1=273972&r2=273973
==============================================================================
--- team/group/v6-new/main/netsock2.c (original)
+++ team/group/v6-new/main/netsock2.c Mon Jul  5 09:37:40 2010
@@ -446,14 +446,16 @@
 	int res;
 
 	if ((res = setsockopt(sockfd, IPPROTO_IP, IP_TOS, &tos, sizeof(tos)))) {
-		ast_log(LOG_WARNING, "Unable to set %s TOS to %d, may be you have no root privileges\n", desc, tos);
+		ast_log(LOG_WARNING, "Unable to set %s TOS to %d (may be you have no "
+			"root privileges): %s\n", desc, tos, strerror(errno));
 	} else if (tos) {
 		ast_verb(2, "Using %s TOS bits %d\n", desc, tos);
 	}
 
 #ifdef linux
 	if (setsockopt(sockfd, SOL_SOCKET, SO_PRIORITY, &cos, sizeof(cos))) {
-		ast_log(LOG_WARNING, "Unable to set %s CoS to %d\n", desc, cos);
+		ast_log(LOG_WARNING, "Unable to set %s CoS to %d: %s\n", desc, cos,
+			strerror(errno));
 	} else if (cos) {
 		ast_verb(2, "Using %s CoS mark %d\n", desc, cos);
 	}




More information about the asterisk-commits mailing list