From 4e12f9553b0182dc51282b7302a9e70da26b6d18 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 28 Jan 2015 17:21:10 +0100 Subject: [PATCH] cppu: convert some OSL_TRACE Change-Id: I5dc00f7b03b51916b1331c4ba64064a5aa5930c9 --- cppu/source/uno/lbmap.cxx | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/cppu/source/uno/lbmap.cxx b/cppu/source/uno/lbmap.cxx index 2354e7d88c4e..257417d4906e 100644 --- a/cppu/source/uno/lbmap.cxx +++ b/cppu/source/uno/lbmap.cxx @@ -390,9 +390,7 @@ static Mapping loadExternalMapping( if (! fpGetMapFunc) { -#if OSL_DEBUG_LEVEL > 1 - OSL_TRACE( "Could not find mapfunc for %s", OUStringToOString( aName, RTL_TEXTENCODING_ASCII_US ).getStr()); -#endif + SAL_INFO("cppu", "Could not find mapfunc for " << aName); return Mapping(); } @@ -665,10 +663,7 @@ void SAL_CALL uno_registerMapping( { OUString aMappingName( getMappingName( pFrom, pTo, pAddPurpose ? OUString(pAddPurpose) : OUString() ) ); -#if OSL_DEBUG_LEVEL > 2 - OString cstr( OUStringToOString( aMappingName, RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( "> inserting new mapping: %s", cstr.getStr() ); -#endif + SAL_INFO("cppu", "> inserting new mapping: " << aMappingName); // count initially 1 MappingEntry * pEntry = new MappingEntry( *ppMapping, freeMapping, aMappingName ); rData.aName2Entry[ aMappingName ] = pEntry; @@ -705,10 +700,7 @@ void SAL_CALL uno_revokeMapping( rData.aMapping2Entry.erase( pEntry->pMapping ); rData.aName2Entry.erase( pEntry->aMappingName ); aGuard.clear(); -#if OSL_DEBUG_LEVEL > 2 - OString cstr( OUStringToOString( pEntry->aMappingName, RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( "> revoking mapping %s", cstr.getStr() ); -#endif + SAL_INFO("cppu", "> revoking mapping " << pEntry->aMappingName); (*pEntry->freeMapping)( pEntry->pMapping ); delete pEntry; }