[Libreoffice-commits] .: tools/inc
Stephan Bergmann
sbergmann at kemper.freedesktop.org
Fri Dec 2 02:29:02 PST 2011
tools/inc/tools/debug.hxx | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 98aa85350460a0f1326b99007ae4b2c4ac425d50
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Dec 2 11:28:17 2011 +0100
Also demote DBG_ASSERTWARNING to SAL_INFO, to reduce output clutter.
diff --git a/tools/inc/tools/debug.hxx b/tools/inc/tools/debug.hxx
index 4fde7b5..3746350 100644
--- a/tools/inc/tools/debug.hxx
+++ b/tools/inc/tools/debug.hxx
@@ -42,10 +42,10 @@
steps taken while executing some protocol) should use the facilities
provided by sal/log.hxx.
- Because the assertion macros (DBG_ASSERTWARNING, DBG_ASSERT, DBG_BF_ASSERT)
- have been used for true assertions as well as for logged warnings, they map
- to SAL_WARN instead of standard assert. The warning and error macros
- (DBG_WARNING, DBG_WARNING1, ..., DBG_WARNING5, DBG_WARNINGFILE,
+ Because the assertion macros (DBG_ASSERT, DBG_BF_ASSERT) have been used for
+ true assertions as well as to log warnings, they map to SAL_WARN instead of
+ standard assert. The warning and error macros (DBG_ASSERTWARNING,
+ DBG_WARNING, DBG_WARNING1, ..., DBG_WARNING5, DBG_WARNINGFILE,
DBG_ERRORFILE) all map to SAL_INFO.
*/
@@ -467,7 +467,7 @@ public:
(const void*)pObj, (DbgUsr)fTest )
#define DBG_ASSERTWARNING( sCon, aWarning ) \
- SAL_DETAIL_WARN_IF_FORMAT(!(sCon), "legacy.tools", aWarning)
+ SAL_DETAIL_INFO_IF_FORMAT(!(sCon), "legacy.tools", aWarning)
#define DBG_ASSERT( sCon, aError ) \
SAL_DETAIL_WARN_IF_FORMAT(!(sCon), "legacy.tools", aError)
More information about the Libreoffice-commits
mailing list