Kaydet (Commit) 533f89e4 authored tarafından Thomas Arnhold's avatar Thomas Arnhold

Move DBG_ERROR1 to OSL_TRACE

üst 5cce8563
...@@ -90,7 +90,7 @@ DialogButtonHBox::setOrdering( rtl::OUString const& ordering ) ...@@ -90,7 +90,7 @@ DialogButtonHBox::setOrdering( rtl::OUString const& ordering )
mnOrdering = WINDOWS; mnOrdering = WINDOWS;
else else
{ {
DBG_ERROR1( "DialogButtonHBox: no such ordering: %s", OUSTRING_CSTR( ordering ) ); OSL_TRACE( "DialogButtonHBox: no such ordering: %s", OUSTRING_CSTR( ordering ) );
} }
} }
......
...@@ -167,7 +167,7 @@ uno::Reference <awt::XLayoutConstrains> WidgetFactory::toolkitCreateWidget (uno: ...@@ -167,7 +167,7 @@ uno::Reference <awt::XLayoutConstrains> WidgetFactory::toolkitCreateWidget (uno:
} }
catch( uno::Exception & ) catch( uno::Exception & )
{ {
DBG_ERROR1( "Warning: %s is not a recognized type\n", OUSTRING_CSTR( name ) ); OSL_TRACE( "Warning: %s is not a recognized type\n", OUSTRING_CSTR( name ) );
return uno::Reference< awt::XLayoutConstrains >(); return uno::Reference< awt::XLayoutConstrains >();
} }
......
...@@ -200,7 +200,7 @@ uno::Any anyFromString( OUString const& value, uno::Type const& type ) ...@@ -200,7 +200,7 @@ uno::Any anyFromString( OUString const& value, uno::Type const& type )
} }
default: default:
DBG_ERROR1( "ERROR: unknown property type of value: `%s'\n", OUSTRING_CSTR( value ) ); OSL_TRACE( "ERROR: unknown property type of value: `%s'\n", OUSTRING_CSTR( value ) );
break; break;
} }
throw uno::RuntimeException(); throw uno::RuntimeException();
...@@ -277,13 +277,13 @@ setProperty( uno::Reference< uno::XInterface > const& xPeer, ...@@ -277,13 +277,13 @@ setProperty( uno::Reference< uno::XInterface > const& xPeer,
} }
catch( beans::UnknownPropertyException & ) catch( beans::UnknownPropertyException & )
{ {
DBG_ERROR1( "Warning: unknown attribute: `%s'\n", OUSTRING_CSTR( unoAttr ) ); OSL_TRACE( "Warning: unknown attribute: `%s'\n", OUSTRING_CSTR( unoAttr ) );
return; return;
} }
if ( prop.Name.getLength() <= 0 ) if ( prop.Name.getLength() <= 0 )
{ {
DBG_ERROR1( "Warning: missing prop: `%s'\n", OUSTRING_CSTR( unoAttr ) ); OSL_TRACE( "Warning: missing prop: `%s'\n", OUSTRING_CSTR( unoAttr ) );
return; return;
} }
......
...@@ -64,7 +64,7 @@ class ImageImpl ...@@ -64,7 +64,7 @@ class ImageImpl
{ {
if ( !mxGraphic.is() ) if ( !mxGraphic.is() )
{ {
DBG_ERROR1( "ERROR: failed to load image: `%s'\n", pName ); OSL_TRACE( "ERROR: failed to load image: `%s'\n", pName );
} }
} }
}; };
......
...@@ -44,7 +44,7 @@ Container::Container( Context const* context, char const* pId ) ...@@ -44,7 +44,7 @@ Container::Container( Context const* context, char const* pId )
{ {
if ( !mxContainer.is() ) if ( !mxContainer.is() )
{ {
DBG_ERROR1( "Error: failed to associate container with '%s'", pId ); OSL_TRACE( "Error: failed to associate container with '%s'", pId );
} }
} }
......
...@@ -151,7 +151,7 @@ PeerHandle Context::GetPeerHandle( const char *id, sal_uInt32 nId ) const ...@@ -151,7 +151,7 @@ PeerHandle Context::GetPeerHandle( const char *id, sal_uInt32 nId ) const
xHandle = pImpl->getByName( OUString( id, strlen( id ), RTL_TEXTENCODING_UTF8 ) ); xHandle = pImpl->getByName( OUString( id, strlen( id ), RTL_TEXTENCODING_UTF8 ) );
if ( !xHandle.is() ) if ( !xHandle.is() )
{ {
DBG_ERROR1( "Failed to fetch widget '%s'", id ); OSL_TRACE( "Failed to fetch widget '%s'", id );
} }
if ( nId != 0 ) if ( nId != 0 )
......
...@@ -635,7 +635,7 @@ static void ImplWriteConfig( ImplConfigData* pData ) ...@@ -635,7 +635,7 @@ static void ImplWriteConfig( ImplConfigData* pData )
{ {
if ( pData->mnTimeStamp != ImplSysGetConfigTimeStamp( pData->maFileName ) ) if ( pData->mnTimeStamp != ImplSysGetConfigTimeStamp( pData->maFileName ) )
{ {
DBG_ERROR1( "Config overwrites modified configfile:\n %s", ByteString( pData->maFileName, RTL_TEXTENCODING_UTF8 ).GetBuffer() ); OSL_TRACE( "Config overwrites modified configfile:\n %s", ByteString( pData->maFileName, RTL_TEXTENCODING_UTF8 ).GetBuffer() );
} }
} }
#endif #endif
......
...@@ -114,12 +114,12 @@ void InitTestToolLib() ...@@ -114,12 +114,12 @@ void InitTestToolLib()
(reinterpret_cast< pfunc_CreateRemoteControl >(pInitFunc))(); (reinterpret_cast< pfunc_CreateRemoteControl >(pInitFunc))();
else else
{ {
DBG_ERROR1( "Unable to get Symbol 'CreateRemoteControl' from library %s while loading testtool support.", SVLIBRARY( "sts" ) ); OSL_TRACE( "Unable to get Symbol 'CreateRemoteControl' from library %s while loading testtool support.", SVLIBRARY( "sts" ) );
} }
} }
else else
{ {
DBG_ERROR1( "Unable to access library %s while loading testtool support.", SVLIBRARY( "sts" ) ); OSL_TRACE( "Unable to access library %s while loading testtool support.", SVLIBRARY( "sts" ) );
} }
} }
...@@ -139,12 +139,12 @@ void InitTestToolLib() ...@@ -139,12 +139,12 @@ void InitTestToolLib()
} }
else else
{ {
DBG_ERROR1( "Unable to get Symbol 'CreateEventLogger' from library %s while loading testtool support.", SVLIBRARY( "sts" ) ); OSL_TRACE( "Unable to get Symbol 'CreateEventLogger' from library %s while loading testtool support.", SVLIBRARY( "sts" ) );
} }
} }
else else
{ {
DBG_ERROR1( "Unable to access library %s while loading testtool support.", SVLIBRARY( "sts" ) ); OSL_TRACE( "Unable to access library %s while loading testtool support.", SVLIBRARY( "sts" ) );
} }
} }
} }
......
...@@ -268,7 +268,7 @@ void Accelerator::ImplInsertAccel( USHORT nItemId, const KeyCode& rKeyCode, ...@@ -268,7 +268,7 @@ void Accelerator::ImplInsertAccel( USHORT nItemId, const KeyCode& rKeyCode,
} }
else if ( !mpData->maKeyTable.Insert( nCode, pEntry ) ) else if ( !mpData->maKeyTable.Insert( nCode, pEntry ) )
{ {
DBG_ERROR1( "Accelerator::InsertItem(): KeyCode (Key: %lx) already exists", nCode ); OSL_TRACE( "Accelerator::InsertItem(): KeyCode (Key: %lx) already exists", nCode );
delete pEntry; delete pEntry;
} }
else else
......
...@@ -2605,7 +2605,7 @@ long ImplWindowFrameProc( Window* pWindow, SalFrame* /*pFrame*/, ...@@ -2605,7 +2605,7 @@ long ImplWindowFrameProc( Window* pWindow, SalFrame* /*pFrame*/,
break; break;
#ifdef DBG_UTIL #ifdef DBG_UTIL
default: default:
DBG_ERROR1( "ImplWindowFrameProc(): unknown event (%lu)", (ULONG)nEvent ); OSL_TRACE( "ImplWindowFrameProc(): unknown event (%lu)", (ULONG)nEvent );
break; break;
#endif #endif
} }
......
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