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 )
mnOrdering = WINDOWS;
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:
}
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 >();
}
......
......@@ -200,7 +200,7 @@ uno::Any anyFromString( OUString const& value, uno::Type const& type )
}
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;
}
throw uno::RuntimeException();
......@@ -277,13 +277,13 @@ setProperty( uno::Reference< uno::XInterface > const& xPeer,
}
catch( beans::UnknownPropertyException & )
{
DBG_ERROR1( "Warning: unknown attribute: `%s'\n", OUSTRING_CSTR( unoAttr ) );
OSL_TRACE( "Warning: unknown attribute: `%s'\n", OUSTRING_CSTR( unoAttr ) );
return;
}
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;
}
......
......@@ -64,7 +64,7 @@ class ImageImpl
{
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 )
{
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
xHandle = pImpl->getByName( OUString( id, strlen( id ), RTL_TEXTENCODING_UTF8 ) );
if ( !xHandle.is() )
{
DBG_ERROR1( "Failed to fetch widget '%s'", id );
OSL_TRACE( "Failed to fetch widget '%s'", id );
}
if ( nId != 0 )
......
......@@ -635,7 +635,7 @@ static void ImplWriteConfig( ImplConfigData* pData )
{
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
......
......@@ -114,12 +114,12 @@ void InitTestToolLib()
(reinterpret_cast< pfunc_CreateRemoteControl >(pInitFunc))();
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
{
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()
}
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
{
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,
}
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;
}
else
......
......@@ -2605,7 +2605,7 @@ long ImplWindowFrameProc( Window* pWindow, SalFrame* /*pFrame*/,
break;
#ifdef DBG_UTIL
default:
DBG_ERROR1( "ImplWindowFrameProc(): unknown event (%lu)", (ULONG)nEvent );
OSL_TRACE( "ImplWindowFrameProc(): unknown event (%lu)", (ULONG)nEvent );
break;
#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