diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-19 12:22:03 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-19 13:08:29 +0200 |
commit | c8479bdc5b007ca5ffe1d553be3d90fb03424526 (patch) | |
tree | f927ba8085da8c9dc46d1cda669fbac8af724abf /include/tools/debug.hxx | |
parent | 39e63bfac528d8c5c002ee8fef4a1e5d7181b826 (diff) |
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
Diffstat (limited to 'include/tools/debug.hxx')
-rw-r--r-- | include/tools/debug.hxx | 10 |
1 files changed, 3 insertions, 7 deletions
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: */ |