mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
Convert ast_verbose to ast_verb.
Reported by: snuffy Patch by: snuffy (Closes issue #11547) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92913 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user