diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-03-12 12:51:35 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-03-12 14:19:49 +0100 |
commit | d0c187cc8cc78b661726dad8a75d20af595085f1 (patch) | |
tree | 4940c13a4f891127a4b4e426f10f25e340790ac2 /stoc | |
parent | 7f656740d865bcdf77a49a41d47aedf401a80795 (diff) |
OSL_TRACE: Use format string
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/corereflection/crefl.cxx | 2 | ||||
-rw-r--r-- | stoc/source/corereflection/lrucache.hxx | 6 | ||||
-rw-r--r-- | stoc/source/security/access_controller.cxx | 6 | ||||
-rw-r--r-- | stoc/source/security/lru_cache.h | 6 | ||||
-rw-r--r-- | stoc/source/security/permissions.cxx | 4 | ||||
-rw-r--r-- | stoc/source/tdmanager/lrucache.hxx | 6 | ||||
-rw-r--r-- | stoc/test/javavm/testjavavm.cxx | 2 | ||||
-rw-r--r-- | stoc/test/testconv.cxx | 2 | ||||
-rw-r--r-- | stoc/test/testcorefl.cxx | 2 | ||||
-rw-r--r-- | stoc/test/testintrosp.cxx | 2 |
10 files changed, 19 insertions, 19 deletions
diff --git a/stoc/source/corereflection/crefl.cxx b/stoc/source/corereflection/crefl.cxx index b625d705a183..b126adb5103c 100644 --- a/stoc/source/corereflection/crefl.cxx +++ b/stoc/source/corereflection/crefl.cxx @@ -276,7 +276,7 @@ inline Reference< XIdlClass > IdlReflectionServiceImpl::constructClass( #if OSL_DEBUG_LEVEL > 1 OSL_TRACE( "### corereflection type unsupported: " ); OString aName( OUStringToOString( pTypeDescr->pTypeName, RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( aName.getStr() ); + OSL_TRACE( "%s", aName.getStr() ); OSL_TRACE( "\n" ); #endif return Reference< XIdlClass >(); diff --git a/stoc/source/corereflection/lrucache.hxx b/stoc/source/corereflection/lrucache.hxx index 4e44d537cdcf..9a4b08746967 100644 --- a/stoc/source/corereflection/lrucache.hxx +++ b/stoc/source/corereflection/lrucache.hxx @@ -166,7 +166,7 @@ inline t_Val LRU_Cache< t_Key, t_Val, t_KeyHash, t_KeyEqual >::getValue( const t toFront( pEntry ); #ifdef __CACHE_DIAGNOSE OSL_TRACE( "> retrieved element \"" ); - OSL_TRACE( ::rtl::OUStringToOString( pEntry->aKey, RTL_TEXTENCODING_ASCII_US ).getStr() ); + OSL_TRACE( "%s", ::rtl::OUStringToOString( pEntry->aKey, RTL_TEXTENCODING_ASCII_US ).getStr() ); OSL_TRACE( "\" from cache <\n" ); #endif return pEntry->aVal; @@ -191,7 +191,7 @@ inline void LRU_Cache< t_Key, t_Val, t_KeyHash, t_KeyEqual >::setValue( if (pEntry->aKey.getLength()) { OSL_TRACE( "> kicking element \"" ); - OSL_TRACE( ::rtl::OUStringToOString( pEntry->aKey, RTL_TEXTENCODING_ASCII_US ).getStr() ); + OSL_TRACE( "%s", ::rtl::OUStringToOString( pEntry->aKey, RTL_TEXTENCODING_ASCII_US ).getStr() ); OSL_TRACE( "\" from cache <\n" ); } #endif @@ -203,7 +203,7 @@ inline void LRU_Cache< t_Key, t_Val, t_KeyHash, t_KeyEqual >::setValue( pEntry = (*iFind).second; #ifdef __CACHE_DIAGNOSE OSL_TRACE( "> replacing element \"" ); - OSL_TRACE( ::rtl::OUStringToOString( pEntry->aKey, RTL_TEXTENCODING_ASCII_US ).getStr() ); + OSL_TRACE( "%s", ::rtl::OUStringToOString( pEntry->aKey, RTL_TEXTENCODING_ASCII_US ).getStr() ); OSL_TRACE( "\" in cache <\n" ); #endif } diff --git a/stoc/source/security/access_controller.cxx b/stoc/source/security/access_controller.cxx index 529899a53aae..18ddc87b6425 100644 --- a/stoc/source/security/access_controller.cxx +++ b/stoc/source/security/access_controller.cxx @@ -616,13 +616,13 @@ static void dumpPermissions( RTL_CONSTASCII_STRINGPARAM("> dumping default permissions:") ); } OString str( ::rtl::OUStringToOString( buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( str.getStr() ); + OSL_TRACE( "%s", str.getStr() ); Sequence< OUString > permissions( collection.toStrings() ); OUString const * p = permissions.getConstArray(); for ( sal_Int32 nPos = 0; nPos < permissions.getLength(); ++nPos ) { OString str( ::rtl::OUStringToOString( p[ nPos ], RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( str.getStr() ); + OSL_TRACE( "%s", str.getStr() ); } OSL_TRACE( "> permission dump done" ); } @@ -764,7 +764,7 @@ PermissionCollection AccessController::getEffectivePermissions( buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("\"") ); OString str( ::rtl::OUStringToOString( buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( str.getStr() ); + OSL_TRACE( "%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 4b7440e9dce8..123e0b181a19 100644 --- a/stoc/source/security/lru_cache.h +++ b/stoc/source/security/lru_cache.h @@ -203,7 +203,7 @@ inline t_val const * lru_cache< t_key, t_val, t_hashKey, t_equalKey >::lookup( buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("\" from cache") ); ::rtl::OString str( ::rtl::OUStringToOString( buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( str.getStr() ); + OSL_TRACE( "%s", str.getStr() ); #endif return &entry->m_val; } @@ -232,7 +232,7 @@ inline void lru_cache< t_key, t_val, t_hashKey, t_equalKey >::set( buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("\" from cache") ); ::rtl::OString str( ::rtl::OUStringToOString( buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( str.getStr() ); + OSL_TRACE( "%s", str.getStr() ); } #endif m_key2element.erase( entry->m_key ); @@ -253,7 +253,7 @@ inline void lru_cache< t_key, t_val, t_hashKey, t_equalKey >::set( buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("\" in cache") ); ::rtl::OString str( ::rtl::OUStringToOString( buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( str.getStr() ); + OSL_TRACE( "%s", str.getStr() ); #endif } entry->m_val = val; diff --git a/stoc/source/security/permissions.cxx b/stoc/source/security/permissions.cxx index 23a99a1fd0da..c41643287020 100644 --- a/stoc/source/security/permissions.cxx +++ b/stoc/source/security/permissions.cxx @@ -89,7 +89,7 @@ static inline sal_Int32 makeMask( buf.append( item ); ::rtl::OString str( ::rtl::OUStringToOString( buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( str.getStr() ); + OSL_TRACE( "%s", str.getStr() ); } #endif } @@ -580,7 +580,7 @@ static void demanded_diag( buf.appendAscii( RTL_CONSTASCII_STRINGPARAM(" => ok.") ); ::rtl::OString str( ::rtl::OUStringToOString( buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( str.getStr() ); + OSL_TRACE( "%s", str.getStr() ); } #endif //-------------------------------------------------------------------------------------------------- diff --git a/stoc/source/tdmanager/lrucache.hxx b/stoc/source/tdmanager/lrucache.hxx index 4f14fc7a2a91..36f3c62390c5 100644 --- a/stoc/source/tdmanager/lrucache.hxx +++ b/stoc/source/tdmanager/lrucache.hxx @@ -170,7 +170,7 @@ inline t_Val LRU_Cache< t_Key, t_Val, t_KeyHash, t_KeyEqual >::getValue( toFront( pEntry ); #ifdef __CACHE_DIAGNOSE OSL_TRACE( "> retrieved element \"" ); - OSL_TRACE( ::rtl::OUStringToOString( pEntry->aKey, RTL_TEXTENCODING_ASCII_US ).getStr() ); + OSL_TRACE( "%s", ::rtl::OUStringToOString( pEntry->aKey, RTL_TEXTENCODING_ASCII_US ).getStr() ); OSL_TRACE( "\" from cache <\n" ); #endif return pEntry->aVal; @@ -195,7 +195,7 @@ inline void LRU_Cache< t_Key, t_Val, t_KeyHash, t_KeyEqual >::setValue( if (pEntry->aKey.getLength()) { OSL_TRACE( "> kicking element \"" ); - OSL_TRACE( ::rtl::OUStringToOString( pEntry->aKey, RTL_TEXTENCODING_ASCII_US ).getStr() ); + OSL_TRACE( "%s", ::rtl::OUStringToOString( pEntry->aKey, RTL_TEXTENCODING_ASCII_US ).getStr() ); OSL_TRACE( "\" from cache <\n" ); } #endif @@ -207,7 +207,7 @@ inline void LRU_Cache< t_Key, t_Val, t_KeyHash, t_KeyEqual >::setValue( pEntry = (*iFind).second; #ifdef __CACHE_DIAGNOSE OSL_TRACE( "> replacing element \"" ); - OSL_TRACE( ::rtl::OUStringToOString( pEntry->aKey, RTL_TEXTENCODING_ASCII_US ).getStr() ); + OSL_TRACE( "%s", ::rtl::OUStringToOString( pEntry->aKey, RTL_TEXTENCODING_ASCII_US ).getStr() ); OSL_TRACE( "\" in cache <\n" ); #endif } diff --git a/stoc/test/javavm/testjavavm.cxx b/stoc/test/javavm/testjavavm.cxx index f3ff52851e7c..2cffe1541b66 100644 --- a/stoc/test/javavm/testjavavm.cxx +++ b/stoc/test/javavm/testjavavm.cxx @@ -158,7 +158,7 @@ SAL_IMPLEMENT_MAIN() OSL_ENSURE( sal_False, "### exception occurred!" ); OString aMsg( OUStringToOString( rExc.Message, RTL_TEXTENCODING_ASCII_US ) ); OSL_TRACE( "### exception occurred: " ); - OSL_TRACE( aMsg.getStr() ); + OSL_TRACE( "%s", aMsg.getStr() ); OSL_TRACE( "\n" ); } diff --git a/stoc/test/testconv.cxx b/stoc/test/testconv.cxx index d8c0dd359e6a..f847b855fe88 100644 --- a/stoc/test/testconv.cxx +++ b/stoc/test/testconv.cxx @@ -699,7 +699,7 @@ SAL_IMPLEMENT_MAIN() OSL_ENSURE( sal_False, "### exception occurred!" ); OString aMsg( OUStringToOString( rExc.Message, RTL_TEXTENCODING_ASCII_US ) ); OSL_TRACE( "### exception occurred: " ); - OSL_TRACE( aMsg.getStr() ); + OSL_TRACE( "%s", aMsg.getStr() ); OSL_TRACE( "\n" ); } diff --git a/stoc/test/testcorefl.cxx b/stoc/test/testcorefl.cxx index 63bde05d44e2..e43687c92f5b 100644 --- a/stoc/test/testcorefl.cxx +++ b/stoc/test/testcorefl.cxx @@ -407,7 +407,7 @@ SAL_IMPLEMENT_MAIN() OString aMsg( OUStringToOString( rExc.Message, RTL_TEXTENCODING_ASCII_US ) ); OSL_TRACE( "### exception occurred: " ); - OSL_TRACE( aMsg.getStr() ); + OSL_TRACE( "%s", aMsg.getStr() ); OSL_TRACE( "\n" ); } diff --git a/stoc/test/testintrosp.cxx b/stoc/test/testintrosp.cxx index 9a075333fac6..000d95279983 100644 --- a/stoc/test/testintrosp.cxx +++ b/stoc/test/testintrosp.cxx @@ -1244,7 +1244,7 @@ SAL_IMPLEMENT_MAIN() OSL_ENSURE( sal_False, "### exception occurred!" ); OString aMsg( OUStringToOString( rExc.Message, RTL_TEXTENCODING_ASCII_US ) ); OSL_TRACE( "### exception occurred: " ); - OSL_TRACE( aMsg.getStr() ); + OSL_TRACE( "%s", aMsg.getStr() ); OSL_TRACE( "\n" ); } |