summaryrefslogtreecommitdiff
path: root/stoc/source/security
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-12-09 15:48:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-12-11 18:56:16 +0000
commit4ef9ccea6c4aa79cdc57dea52b47775c346696ec (patch)
treead3b4dd30484436c595990bd8994f94477b9492b /stoc/source/security
parent4282ea67c2e90222f141df8213b06dfed09d4c85 (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/security')
-rw-r--r--stoc/source/security/access_controller.cxx10
-rw-r--r--stoc/source/security/lru_cache.h24
-rw-r--r--stoc/source/security/permissions.cxx9
3 files changed, 15 insertions, 28 deletions
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