mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
Replace direct checks of option_debug with DEBUG_ATLEAST macro.
Checking option_debug directly is incorrect as it ignores file/module specific debug settings. This system-wide change replaces nearly all direct checks for option_debug with the DEBUG_ATLEAST macro. Change-Id: Ic342d4799a945dbc40ac085ac142681094a4ebf0
This commit is contained in:
@@ -501,7 +501,7 @@ int callerid_feed_jp(struct callerid_state *cid, unsigned char *ubuf, int len, s
|
||||
case 0x06: /* short dial number */
|
||||
case 0x07: /* reserved */
|
||||
default: /* reserved */
|
||||
if (option_debug > 1)
|
||||
if (DEBUG_ATLEAST(2))
|
||||
ast_log(LOG_NOTICE, "did info:#1=%X\n", (unsigned)cid->rawdata[x]);
|
||||
break ;
|
||||
}
|
||||
|
Reference in New Issue
Block a user