aboutsummaryrefslogtreecommitdiffstats
path: root/main/netsock.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-14 14:48:38 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-14 14:48:38 +0000
commit35d428bccae3ad607662249b9fd6c3a2d16b9364 (patch)
treeeb8395c48dfe42302c76abaf23fc722e7e6190bf /main/netsock.c
parent3b2aaf764626c8870fd2c7de8805fb935e65b0db (diff)
Convert ast_verbose to ast_verb.
Reported by: snuffy Patch by: snuffy (Closes issue #11547) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92913 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/netsock.c')
-rw-r--r--main/netsock.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/main/netsock.c b/main/netsock.c
index b5b6999f6..d10c0c344 100644
--- a/main/netsock.c
+++ b/main/netsock.c
@@ -149,18 +149,14 @@ int ast_netsock_set_qos(int netsocket, int tos, int cos)
if ((res = setsockopt(netsocket, IPPROTO_IP, IP_TOS, &tos, sizeof(tos))))
ast_log(LOG_WARNING, "Unable to set TOS to %d\n", tos);
- else {
- if (option_verbose > 1)
- ast_verbose(VERBOSE_PREFIX_2 "Using TOS bits %d\n", tos);
- }
+ else
+ ast_verb(2, "Using TOS bits %d\n", tos);
#if defined(linux)
if (setsockopt(netsocket, SOL_SOCKET, SO_PRIORITY, &cos, sizeof(cos)))
- ast_log(LOG_WARNING, "Unable to set CoS to %d\n", cos);
- else {
- if (option_verbose > 1)
- ast_verbose(VERBOSE_PREFIX_2 "Using CoS mark %d\n", cos);
- }
+ ast_log(LOG_WARNING, "Unable to set CoS to %d\n", cos);
+ else
+ ast_verb(2, "Using CoS mark %d\n", cos);
#endif
return res;