summaryrefslogtreecommitdiff
path: root/third_party/srtp
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-04-03 22:03:14 +0000
committerBenny Prijono <bennylp@teluu.com>2008-04-03 22:03:14 +0000
commitcd09b24e19e5865a08ace989a367ec5c71ca2c1a (patch)
tree007c7c37b92345e7a7c40e30e839dada12b1a901 /third_party/srtp
parent42ca87c9079fd939407e096e58bd3d0bc7655535 (diff)
Fixed link error to pj_log() in libSRTP if PJ_LOG_MAX_LEVEL is set to zero (thanks Michael CHRISTOPHER)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1907 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'third_party/srtp')
-rw-r--r--third_party/srtp/pjlib/srtp_err.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/third_party/srtp/pjlib/srtp_err.c b/third_party/srtp/pjlib/srtp_err.c
index 50542407..8a92c56b 100644
--- a/third_party/srtp/pjlib/srtp_err.c
+++ b/third_party/srtp/pjlib/srtp_err.c
@@ -32,12 +32,14 @@ void
err_report(int priority, char *format, ...) {
va_list args;
+#if PJ_LOG_MAX_LEVEL >= 1
if (priority <= err_level) {
va_start(args, format);
pj_log("libsrtp", priority, format, args);
va_end(args);
}
+#endif
}
void