diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-09 15:48:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-11 18:56:16 +0000 |
commit | 4ef9ccea6c4aa79cdc57dea52b47775c346696ec (patch) | |
tree | ad3b4dd30484436c595990bd8994f94477b9492b /stoc/source | |
parent | 4282ea67c2e90222f141df8213b06dfed09d4c85 (diff) |
OSL_TRACE -> SAL in sfx2..svx
Change-Id: I78cf8058a5682baa3d7b00a25feeb2d28fb3e66e
Reviewed-on: https://gerrit.libreoffice.org/31799
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'stoc/source')
-rw-r--r-- | stoc/source/inspect/introspection.cxx | 4 | ||||
-rw-r--r-- | stoc/source/javaloader/javaloader.cxx | 2 | ||||
-rw-r--r-- | stoc/source/security/access_controller.cxx | 10 | ||||
-rw-r--r-- | stoc/source/security/lru_cache.h | 24 | ||||
-rw-r--r-- | stoc/source/security/permissions.cxx | 9 |
5 files changed, 18 insertions, 31 deletions
diff --git a/stoc/source/inspect/introspection.cxx b/stoc/source/inspect/introspection.cxx index 9043ded5416c..4a4ac6bcc170 100644 --- a/stoc/source/inspect/introspection.cxx +++ b/stoc/source/inspect/introspection.cxx @@ -2070,7 +2070,7 @@ css::uno::Reference<css::beans::XIntrospectionAccess> Implementation::inspect( if (aIt != rPropNameMap.end()) { /* TODO - OSL_TRACE( + SAL_INFO("stoc",( String( "Introspection: Property \"" ) + OOUStringToString( aPropName, CHARSET_SYSTEM ) + String( "\" found more than once" ) ); @@ -2259,7 +2259,7 @@ css::uno::Reference<css::beans::XIntrospectionAccess> Implementation::inspect( if (aIt != rPropNameMap.end()) { /* TODO: - OSL_TRACE( + SAL_INFO("stoc",( String( "Introspection: Property \"" ) + OOUStringToString( aPropName, CHARSET_SYSTEM ) + String( "\" found more than once" ) ); diff --git a/stoc/source/javaloader/javaloader.cxx b/stoc/source/javaloader/javaloader.cxx index f625f610b7ef..f7ecaadf4588 100644 --- a/stoc/source/javaloader/javaloader.cxx +++ b/stoc/source/javaloader/javaloader.cxx @@ -284,7 +284,7 @@ const css::uno::Reference<XImplementationLoader> & JavaComponentLoader::getJavaL reinterpret_cast<typelib_TypeDescription *>(pType_XImplementationLoader)); throw; } - OSL_TRACE("javaloader.cxx: mapped javaloader - 0x%p", m_javaLoader.get()); + SAL_INFO("stoc", "javaloader.cxx: mapped javaloader - 0x" << m_javaLoader.get()); return m_javaLoader; } diff --git a/stoc/source/security/access_controller.cxx b/stoc/source/security/access_controller.cxx index 246ea6fb3573..1bc162ab703a 100644 --- a/stoc/source/security/access_controller.cxx +++ b/stoc/source/security/access_controller.cxx @@ -488,16 +488,14 @@ static void dumpPermissions( { buf.append( "> dumping default permissions:" ); } - OString str( OUStringToOString( buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( "%s", str.getStr() ); + SAL_INFO("stoc", buf.makeStringAndClear() ); Sequence< OUString > permissions( collection.toStrings() ); OUString const * p = permissions.getConstArray(); for ( sal_Int32 nPos = 0; nPos < permissions.getLength(); ++nPos ) { - OString str( OUStringToOString( p[ nPos ], RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( "%s", str.getStr() ); + SAL_INFO("stoc", p[ nPos ] ); } - OSL_TRACE( "> permission dump done" ); + SAL_INFO("stoc", "> permission dump done" ); } #endif @@ -632,7 +630,7 @@ PermissionCollection AccessController::getEffectivePermissions( buf.append( "\"" ); OString str( OUStringToOString( buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( "%s", str.getStr() ); + SAL_INFO("stoc",( "%s", str.getStr() ); #endif return PermissionCollection( new AllPermission() ); } diff --git a/stoc/source/security/lru_cache.h b/stoc/source/security/lru_cache.h index d61877314eb6..5af0718c38e0 100644 --- a/stoc/source/security/lru_cache.h +++ b/stoc/source/security/lru_cache.h @@ -157,12 +157,10 @@ inline t_val const * lru_cache< t_key, t_val, t_hashKey, t_equalKey >::lookup( toFront( entry ); #ifdef __CACHE_DIAGNOSE OUStringBuffer buf( 48 ); - buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("> retrieved element \"") ); + buf.appendAscii( "> retrieved element \"" ); buf.append( entry->m_key ); - buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("\" from cache") ); - OString str( OUStringToOString( - buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( "%s", str.getStr() ); + buf.appendAscii( "\" from cache" ); + SAL_INFO("stoc", buf.makeStringAndClear() ); #endif return &entry->m_val; } @@ -186,12 +184,10 @@ inline void lru_cache< t_key, t_val, t_hashKey, t_equalKey >::set( if (entry->m_key.getLength()) { OUStringBuffer buf( 48 ); - buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("> kicking element \"") ); + buf.appendAscii( "> kicking element \"" ); buf.append( entry->m_key ); - buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("\" from cache") ); - OString str( OUStringToOString( - buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( "%s", str.getStr() ); + buf.appendAscii( "\" from cache" ); + SAL_INFO("stoc", buf.makeStringAndClear() ); } #endif m_key2element.erase( entry->m_key ); @@ -208,12 +204,10 @@ inline void lru_cache< t_key, t_val, t_hashKey, t_equalKey >::set( entry = iFind->second; #ifdef __CACHE_DIAGNOSE OUStringBuffer buf( 48 ); - buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("> replacing element \"") ); + buf.appendAscii( "> replacing element \"" ); buf.append( entry->m_key ); - buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("\" in cache") ); - OString str( OUStringToOString( - buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( "%s", str.getStr() ); + buf.appendAscii( "\" in cache" ); + SAL_INFO("stoc", buf.makeStringAndClear() ); #endif } entry->m_val = val; diff --git a/stoc/source/security/permissions.cxx b/stoc/source/security/permissions.cxx index d5f033c95ab3..a865d475042d 100644 --- a/stoc/source/security/permissions.cxx +++ b/stoc/source/security/permissions.cxx @@ -70,12 +70,7 @@ static inline sal_Int32 makeMask( #if OSL_DEBUG_LEVEL > 0 if (! strings[ nPos ]) { - OUStringBuffer buf( 48 ); - buf.append( "### ignoring unknown socket action: " ); - buf.append( item ); - OString str( OUStringToOString( - buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( "%s", str.getStr() ); + SAL_WARN("stoc", "ignoring unknown socket action: " << item ); } #endif } @@ -542,7 +537,7 @@ static void demanded_diag( buf.append( " => ok." ); OString str( OUStringToOString( buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( "%s", str.getStr() ); + SAL_INFO("stoc",( "%s", str.getStr() ); } #endif |