summaryrefslogtreecommitdiff
path: root/modules/mwi
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2014-11-30 21:10:26 +0100
committerAlfred E. Heggestad <aeh@db.org>2014-11-30 21:10:26 +0100
commit847c497d84366caaae4e575a7cb700a5f092279d (patch)
treef58c0beb48549c77aa0ec1da74ee4c2a1de48fc5 /modules/mwi
parent9f1cc4b054088b9437462f44b8f4dbe435f88b2d (diff)
ui: make ui_output() take a formatted string
- minor cleanup in logging - use ui_output() for interactive output - avoid using re_printf() - stdio: added an output_handler (to stderr)
Diffstat (limited to 'modules/mwi')
-rw-r--r--modules/mwi/mwi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mwi/mwi.c b/modules/mwi/mwi.c
index 9bea26a..a04e6bf 100644
--- a/modules/mwi/mwi.c
+++ b/modules/mwi/mwi.c
@@ -41,8 +41,8 @@ static void notify_handler(struct sip *sip, const struct sip_msg *msg,
struct mwi *mwi = arg;
if (mbuf_get_left(msg->mb)) {
- re_printf("----- MWI for %s -----\n", ua_aor(mwi->ua));
- re_printf("%b\n", mbuf_buf(msg->mb), mbuf_get_left(msg->mb));
+ ui_output("----- MWI for %s -----\n", ua_aor(mwi->ua));
+ ui_output("%b\n", mbuf_buf(msg->mb), mbuf_get_left(msg->mb));
}
(void)sip_treply(NULL, sip, msg, 200, "OK");