summaryrefslogtreecommitdiff
path: root/tools/source/debug
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-11-23 15:45:43 +0100
committerStephan Bergmann <sbergman@redhat.com>2011-11-23 15:50:58 +0100
commit0c7bff02710f8ad7915e215f723b6abad0079221 (patch)
tree30ddfb6fedcd954f91bfa24f36df1dd7413804c4 /tools/source/debug
parentf4573ceb2965ccc8abc1f5165b0fa63f5d63649f (diff)
Changed sal/log.h -> sal/log.hxx, drop _S from C++ streaming log macros.
A compile time check ensures the common case of streaming just a plain C-style string literal still produces reasonably compact call-site code. The format-string variants are still available in sal/detail/log.h, but only to be used in obsolete osl/diagnose.h etc., and going to be removed again eventually.
Diffstat (limited to 'tools/source/debug')
-rw-r--r--tools/source/debug/debug.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/source/debug/debug.cxx b/tools/source/debug/debug.cxx
index d3f2c088b897..091f459b2319 100644
--- a/tools/source/debug/debug.cxx
+++ b/tools/source/debug/debug.cxx
@@ -50,7 +50,7 @@
#include <tools/debug.hxx>
#include <rtl/string.h>
-#include <sal/log.h>
+#include <sal/log.hxx>
#include <sal/macros.h>
#include <vector>
@@ -1334,7 +1334,7 @@ void DbgProf( sal_uInt16 nAction, DbgDataType* pDbgData )
sal_uIntPtr nTime;
if ( (nAction != DBG_PROF_START) && !pProfData )
{
- SAL_WARN_S(
+ SAL_WARN(
"tools.debug",
"DBG_PROF...() without DBG_PROFSTART(): " << pDbgData->pName);
return;
@@ -1454,7 +1454,7 @@ void DbgXtor( DbgDataType* pDbgData, sal_uInt16 nAction, const void* pThis,
sal_uInt16 nAct = nAction & ~DBG_XTOR_DTOROBJ;
- SAL_INFO_IF_S(
+ SAL_INFO_IF(
((pData->aDbgData.nTestFlags & DBG_TEST_XTOR_TRACE)
&& !(nAction & DBG_XTOR_DTOROBJ) && nAct != DBG_XTOR_CHKOBJ),
"tools.debug",
@@ -1468,7 +1468,7 @@ void DbgXtor( DbgDataType* pDbgData, sal_uInt16 nAction, const void* pThis,
// DBG_CTOR-Aufruf vor allen anderen DBG_XTOR-Aufrufen
if ( ((nAction & ~DBG_XTOR_DTOROBJ) != DBG_XTOR_CTOR) && !pDbgData->pData )
{
- SAL_WARN_S(
+ SAL_WARN(
"tools.debug",
"DBG_DTOR() or DBG_CHKTHIS() without DBG_CTOR(): "
<< pDbgData->pName);
@@ -1484,7 +1484,7 @@ void DbgXtor( DbgDataType* pDbgData, sal_uInt16 nAction, const void* pThis,
// This-Pointer == NULL
if ( !pThis )
{
- SAL_WARN_S(
+ SAL_WARN(
"tools.debug",
"this == NULL in class " << pDbgData->pName);
return;
@@ -1492,7 +1492,7 @@ void DbgXtor( DbgDataType* pDbgData, sal_uInt16 nAction, const void* pThis,
if ( (nAction & ~DBG_XTOR_DTOROBJ) != DBG_XTOR_CTOR )
{
- SAL_WARN_IF_S(
+ SAL_WARN_IF(
!pXtorData->aThisList.IsIn(pThis), "tools.debug",
"invalid this-Pointer %p in class " << pDbgData->pName);
}
@@ -1558,13 +1558,13 @@ void DbgXtor( DbgDataType* pDbgData, sal_uInt16 nAction, const void* pThis,
}
// Gegebenenfalls Fehlermeldung ausgeben
- SAL_WARN_IF_S(
+ SAL_WARN_IF(
pMsg, "tools.debug",
"Error-Msg from Object " << pThis << " in class "
<< pDbgData->pName << ": " << pMsg);
}
- SAL_INFO_IF_S(
+ SAL_INFO_IF(
((pData->aDbgData.nTestFlags & DBG_TEST_XTOR_TRACE)
&& (nAction & DBG_XTOR_DTOROBJ) && nAct != DBG_XTOR_CHKOBJ),
"tools.debug",