diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-04-02 11:30:14 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-04-02 11:30:14 +0000 |
commit | 1d1908a032b3d078210ca41d3d1c17d1bf90cfdd (patch) | |
tree | 910663daf7996504da5e9c140f6c3ed699c4ae8e /pjnath/src/pjnath/stun_msg_dump.c | |
parent | 20ce55304f7f4d40ecde7101e7dd06e7473719cf (diff) |
ICE: work in progress
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1126 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjnath/src/pjnath/stun_msg_dump.c')
-rw-r--r-- | pjnath/src/pjnath/stun_msg_dump.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pjnath/src/pjnath/stun_msg_dump.c b/pjnath/src/pjnath/stun_msg_dump.c index e888e91e..0da2cc21 100644 --- a/pjnath/src/pjnath/stun_msg_dump.c +++ b/pjnath/src/pjnath/stun_msg_dump.c @@ -22,6 +22,9 @@ #include <pj/string.h> +#if PJ_LOG_MAX_LEVEL > 0 + + #define APPLY() if (len < 1 || len >= (end-p)) \ goto on_return; \ p += len @@ -244,7 +247,9 @@ on_return: *printed_len = (p-buffer); return buffer; +#undef APPLY } -#undef APPLY +#endif /* PJ_LOG_MAX_LEVEL > 0 */ + |