diff options
author | Paul Belanger <paul.belanger@polybeacon.com> | 2011-02-04 16:55:39 +0000 |
---|---|---|
committer | Paul Belanger <paul.belanger@polybeacon.com> | 2011-02-04 16:55:39 +0000 |
commit | 3556e4c2d46e8f8d8480c08f9aae049a53f3a493 (patch) | |
tree | a3d1da6c10bc2730a0a579368a28f804a074c035 /include/asterisk/sched.h | |
parent | 9f65acf33e3cab60a9a4e635fe00e6abf2ddc561 (diff) |
Replace ast_log(LOG_DEBUG, ...) with ast_debug()
(closes issue #18556)
Reported by: kkm
Review: https://reviewboard.asterisk.org/r/1071/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@306258 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/sched.h')
-rw-r--r-- | include/asterisk/sched.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/asterisk/sched.h b/include/asterisk/sched.h index c5581fb09..b16421a88 100644 --- a/include/asterisk/sched.h +++ b/include/asterisk/sched.h @@ -49,8 +49,8 @@ extern "C" { int _sched_res = -1; \ while (id > -1 && (_sched_res = ast_sched_del(sched, id)) && ++_count < 10) \ usleep(1); \ - if (_count == 10 && option_debug > 2) { \ - ast_log(LOG_DEBUG, "Unable to cancel schedule ID %d.\n", id); \ + if (_count == 10) { \ + ast_debug(3, "Unable to cancel schedule ID %d.\n", id); \ } \ id = -1; \ (_sched_res); \ @@ -87,8 +87,8 @@ extern "C" { usleep(1); \ ast_mutex_lock(lock); \ } \ - if (_count == 10 && option_debug > 2) { \ - ast_log(LOG_DEBUG, "Unable to cancel schedule ID %d.\n", id); \ + if (_count == 10) { \ + ast_debug(3, "Unable to cancel schedule ID %d.\n", id); \ } \ id = -1; \ (_sched_res); \ |