Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
33be596f
Commit
33be596f
authored
Jul 23, 2014
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pseudotcp: Use different g_log domain for pseudotcp
Also add one for pseudotcp-verbose
parent
7dea3231
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
13 deletions
+3
-13
agent/pseudotcp.c
agent/pseudotcp.c
+3
-13
No files found.
agent/pseudotcp.c
View file @
33be596f
...
...
@@ -516,20 +516,10 @@ static void resize_receive_buffer (PseudoTcpSocket *self, guint32 new_size);
// The following logging is for detailed (packet-level) pseudotcp analysis only.
static
PseudoTcpDebugLevel
debug_level
=
PSEUDO_TCP_DEBUG_NONE
;
#ifndef _MSC_VER
#define DEBUG(level, fmt, ...) \
if (debug_level >= level) \
g_debug ("PseudoTcpSocket %p: " fmt, self, ## __VA_ARGS__)
#else
/* HACK ALERT: To avoid Visual Studio compiler error due to the following bug
* https://connect.microsoft.com/VisualStudio/feedback/details/604348/-va-args-support-has-an-error
* we need to expand the g_debug macro and use g_log directly
*/
#define DEBUG(level, fmt, ...) \
if (debug_level >= level) \
g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "PseudoTcpSocket %p: " fmt, \
#define DEBUG(level, fmt, ...) \
if (debug_level >= level) \
g_log (level == PSEUDO_TCP_DEBUG_NORMAL ? "libnice-pseudotcp" : "libnice-pseudotcp-verbose", G_LOG_LEVEL_DEBUG, "PseudoTcpSocket %p: " fmt, \
self, ## __VA_ARGS__)
#endif
void
pseudo_tcp_set_debug_level
(
PseudoTcpDebugLevel
level
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment