From c8479bdc5b007ca5ffe1d553be3d90fb03424526 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 19 Oct 2015 12:22:03 +0200 Subject: convert DBG_ASSERTWARNING to SAL_WARN_IF I know the comment in debug.hxx said to use SAL_INFO, but SAL_WARN makes much more sense. Change-Id: I3d81f9db89ef8cebe1e4f2983941d69b4c7e6b7d --- include/tools/debug.hxx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'include/tools') diff --git a/include/tools/debug.hxx b/include/tools/debug.hxx index e8a128adcf33..d2748e0025b1 100644 --- a/include/tools/debug.hxx +++ b/include/tools/debug.hxx @@ -32,8 +32,7 @@ Because the assertion macro (DBG_ASSERT) has been used for true assertions as well as to log warnings, it maps to SAL_WARN instead of - standard assert. The warning and error macros (DBG_ASSERTWARNING) all map to - SAL_INFO. + standard assert. */ #ifdef DBG_UTIL @@ -58,18 +57,15 @@ do \ } while(false) #else -// NO DBG_UITL +// NO DBG_UTIL #define DBG_TESTSOLARMUTEX() ((void)0) #endif -#define DBG_ASSERTWARNING( sCon, aWarning ) \ - SAL_DETAIL_INFO_IF_FORMAT(!(sCon), "legacy.tools", "%s", aWarning) - #define DBG_ASSERT( sCon, aError ) \ SAL_DETAIL_WARN_IF_FORMAT(!(sCon), "legacy.tools", "%s", aError) -#endif +#endif // INCLUDED_TOOLS_DEBUG_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit