diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2011-11-22 09:34:46 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-11-22 09:41:47 +0100 |
commit | 70a6b9ffbd676a1384433a86205d2cd4f2d4f4b1 (patch) | |
tree | ffb31ef817b5f2037cf7c332da422b9179d613d5 /canvas/inc | |
parent | f2972242673cc9608960e9ca70e82766be5275e3 (diff) |
New sal/log.h obsoletes osl/diagnose.h and tools/debug.hxx.
* New SAL_INFO..., SAL_WARN... macros.
* New SAL_STREAM supersedes OSL_FORMAT.
* oustringostreaminserter.hxx moved from unotest to rtl (and always UTF-8 now).
* TODO to enable GCC __attribute__((format)) in sal/log.h (requires call-site
cleanup).
* Further functionality in tools/debug.hxx (DBG_MEMTEST, DBG_CTOR, etc.) not yet
addressed.
* Some replacements tools String -> rtl::OUString.
Diffstat (limited to 'canvas/inc')
-rw-r--r-- | canvas/inc/canvas/verbosetrace.hxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/canvas/inc/canvas/verbosetrace.hxx b/canvas/inc/canvas/verbosetrace.hxx index 0e830825ae41..96e12de23520 100644 --- a/canvas/inc/canvas/verbosetrace.hxx +++ b/canvas/inc/canvas/verbosetrace.hxx @@ -29,12 +29,11 @@ #ifndef INCLUDED_CANVAS_VERBOSETRACE_HXX #define INCLUDED_CANVAS_VERBOSETRACE_HXX -#if OSL_DEBUG_LEVEL > 2 -/// Wrap OSL_TRACE with a verbosity switch -#define VERBOSE_TRACE OSL_TRACE -#else -#define VERBOSE_TRACE 1 ? ((void)0) : OSL_TRACE -#endif +#include "sal/config.h" + +#include "sal/log.h" + +#define VERBOSE_TRACE(...) SAL_INFO("canvas.level2", __VA_ARGS__) #endif /* INCLUDED_CANVAS_VERBOSETRACE_HXX */ |