diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-14 19:39:12 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-14 19:39:12 +0000 |
commit | f0424318479863edeed2a6a128e6d1ac926966e3 (patch) | |
tree | 4fd144260e58c9a66d331fc81b46473723452479 /res/res_smdi.c | |
parent | c8ca7d2f263f5161ce1b29ec2c9de835131fc950 (diff) |
Add a massive set of changes for converting to use the ast_debug() macro.
(issue #9957, patches from mvanbaak, caio1982, critch, and dimas)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69327 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_smdi.c')
-rw-r--r-- | res/res_smdi.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/res/res_smdi.c b/res/res_smdi.c index f3d695408..fc9d6d1e4 100644 --- a/res/res_smdi.c +++ b/res/res_smdi.c @@ -111,8 +111,7 @@ int ast_smdi_mwi_set(struct ast_smdi_interface *iface, const char *mailbox) fclose(file); ASTOBJ_UNLOCK(iface); - if (option_debug) - ast_log(LOG_DEBUG, "Sent MWI set message for %s on %s\n", mailbox, iface->name); + ast_debug(1, "Sent MWI set message for %s on %s\n", mailbox, iface->name); return 0; } @@ -143,8 +142,7 @@ int ast_smdi_mwi_unset(struct ast_smdi_interface *iface, const char *mailbox) fclose(file); ASTOBJ_UNLOCK(iface); - if (option_debug) - ast_log(LOG_DEBUG, "Sent MWI unset message for %s on %s\n", mailbox, iface->name); + ast_debug(1, "Sent MWI unset message for %s on %s\n", mailbox, iface->name); return 0; } @@ -413,8 +411,7 @@ static void *smdi_read(void *iface_p) /* add the message to the message queue */ md_msg->timestamp = ast_tvnow(); ast_smdi_md_message_push(iface, md_msg); - if (option_debug) - ast_log(LOG_DEBUG, "Recieved SMDI MD message on %s\n", iface->name); + ast_debug(1, "Recieved SMDI MD message on %s\n", iface->name); ASTOBJ_UNREF(md_msg, ast_smdi_md_message_destroy); @@ -457,8 +454,7 @@ static void *smdi_read(void *iface_p) /* add the message to the message queue */ mwi_msg->timestamp = ast_tvnow(); ast_smdi_mwi_message_push(iface, mwi_msg); - if (option_debug) - ast_log(LOG_DEBUG, "Recieved SMDI MWI message on %s\n", iface->name); + ast_debug(1, "Recieved SMDI MWI message on %s\n", iface->name); ASTOBJ_UNREF(mwi_msg, ast_smdi_mwi_message_destroy); } else { |