summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormcorino <mcorino@users.noreply.github.com>2010-06-28 13:07:50 +0000
committermcorino <mcorino@users.noreply.github.com>2010-06-28 13:07:50 +0000
commitf3f0fd9fa1a9d5a69cec47fc2679a072799e6c77 (patch)
treeb2e0d861d7265f40510ec076a9d0a02b98e50680
parent79e04f6e14dc1e21a21117f62fd9f2c95c6d59da (diff)
downloadATCD-f3f0fd9fa1a9d5a69cec47fc2679a072799e6c77.tar.gz
Mon Jun 28 13:06:30 UTC 2010 Martin Corino <mcorino@remedy.nl>
* protocols/ace/INet/INet_Log.h: Allow tracing to be enabled in debug builds.
-rw-r--r--ACE/ChangeLog5
-rw-r--r--ACE/protocols/ace/INet/INet_Log.h8
2 files changed, 11 insertions, 2 deletions
diff --git a/ACE/ChangeLog b/ACE/ChangeLog
index 036fd7e7440..94f456779f8 100644
--- a/ACE/ChangeLog
+++ b/ACE/ChangeLog
@@ -1,3 +1,8 @@
+Mon Jun 28 13:06:30 UTC 2010 Martin Corino <mcorino@remedy.nl>
+
+ * protocols/ace/INet/INet_Log.h:
+ Allow tracing to be enabled in debug builds.
+
Mon Jun 28 12:53:30 UTC 2010 Martin Corino <mcorino@remedy.nl>
* protocols/ace/INet/StreamHandler.h:
diff --git a/ACE/protocols/ace/INet/INet_Log.h b/ACE/protocols/ace/INet/INet_Log.h
index 8cc9d28ca6c..4160d571a9a 100644
--- a/ACE/protocols/ace/INet/INet_Log.h
+++ b/ACE/protocols/ace/INet/INet_Log.h
@@ -28,9 +28,13 @@ namespace ACE
};
}
-// By default tracing is turned off.
+// By default tracing is turned on in debugmode, off otherwise
#if !defined (INET_NTRACE)
-# define INET_NTRACE 1
+# if defined (NDEBUG)
+# define INET_NTRACE 1
+# else
+# define INET_NTRACE 0
+# endif
#endif /* INET_NTRACE */
#if (INET_NTRACE == 1)