Kaydet (Commit) f4f727f7 authored tarafından Radu Ioan's avatar Radu Ioan Kaydeden (comit) Thorsten Behrens

fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERT

- changed osl_trace with sal_info

Change-Id: I6504abf50f6193db52d101ec856bcaf1ee2a982c
üst 8e633e62
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <osl/interlck.h> #include <osl/interlck.h>
#include <boost/current_function.hpp> #include <boost/current_function.hpp>
#include "sal/log.hxx"
namespace nullcanvas namespace nullcanvas
{ {
...@@ -36,9 +37,7 @@ namespace nullcanvas ...@@ -36,9 +37,7 @@ namespace nullcanvas
public: public:
UsageCounter() UsageCounter()
{ {
OSL_TRACE( "%s, %d objects currently in use.\n", SAL_INFO("canvas.null","" << BOOST_CURRENT_FUNCTION << ", " << osl_atomic_increment( &s_nCount ) << " objects currently in use.\n");
BOOST_CURRENT_FUNCTION,
osl_atomic_increment( &s_nCount ) );
} }
~UsageCounter() ~UsageCounter()
...@@ -47,14 +46,11 @@ namespace nullcanvas ...@@ -47,14 +46,11 @@ namespace nullcanvas
if( !nCount ) if( !nCount )
{ {
OSL_TRACE( "%s, last instance deleted.\n", SAL_INFO("canvas.null", "" << BOOST_CURRENT_FUNCTION << ", last instance deleted.\n");
BOOST_CURRENT_FUNCTION );
} }
else else
{ {
OSL_TRACE( "%s, %d instances left.\n", SAL_INFO("canvas.null", "" << BOOST_CURRENT_FUNCTION << ", " << nCount << " instances left.\n");
BOOST_CURRENT_FUNCTION,
nCount );
} }
} }
......
This diff is collapsed.
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "ConfigurationTracer.hxx" #include "ConfigurationTracer.hxx"
#include <cstdio> #include <cstdio>
#include "sal/log.hxx"
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::drawing::framework; using namespace ::com::sun::star::drawing::framework;
...@@ -32,16 +33,16 @@ void ConfigurationTracer::TraceConfiguration ( ...@@ -32,16 +33,16 @@ void ConfigurationTracer::TraceConfiguration (
const char* pMessage) const char* pMessage)
{ {
#ifdef DEBUG #ifdef DEBUG
OSL_TRACE("%s at %p {", pMessage, rxConfiguration.get()); SAL_INFO("sd.ui","" << pMessage << " at " << rxConfiguration.get() << " {");
if (rxConfiguration.is()) if (rxConfiguration.is())
{ {
TraceBoundResources(rxConfiguration, NULL, 0); TraceBoundResources(rxConfiguration, NULL, 0);
} }
else else
{ {
OSL_TRACE(" empty"); SAL_INFO("sd.ui"," empty");
} }
OSL_TRACE("}"); SAL_INFO("sd.ui","}");
#else #else
(void)rxConfiguration; (void)rxConfiguration;
(void)pMessage; (void)pMessage;
...@@ -65,7 +66,7 @@ void ConfigurationTracer::TraceBoundResources ( ...@@ -65,7 +66,7 @@ void ConfigurationTracer::TraceBoundResources (
::rtl::OUString sLine (aResourceList[nIndex]->getResourceURL()); ::rtl::OUString sLine (aResourceList[nIndex]->getResourceURL());
for (int i=0; i<nIndentation; ++i) for (int i=0; i<nIndentation; ++i)
sLine = sIndentation + sLine; sLine = sIndentation + sLine;
OSL_TRACE("%s", OUStringToOString(sLine, RTL_TEXTENCODING_UTF8).getStr()); SAL_INFO("sd.ui","" << OUStringToOString(sLine, RTL_TEXTENCODING_UTF8).getStr());
TraceBoundResources(rxConfiguration, aResourceList[nIndex], nIndentation+1); TraceBoundResources(rxConfiguration, aResourceList[nIndex], nIndentation+1);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment