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 /bridges | |
parent | 7f656740d865bcdf77a49a41d47aedf401a80795 (diff) |
OSL_TRACE: Use format string
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/source/jni_uno/jni_java2uno.cxx | 6 | ||||
-rw-r--r-- | bridges/source/jni_uno/jni_uno2java.cxx | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/bridges/source/jni_uno/jni_java2uno.cxx b/bridges/source/jni_uno/jni_java2uno.cxx index f4cc3f14e1c2..63a9c0ad02ac 100644 --- a/bridges/source/jni_uno/jni_java2uno.cxx +++ b/bridges/source/jni_uno/jni_java2uno.cxx @@ -118,7 +118,7 @@ void Bridge::handle_uno_exc( JNI_context const & jni, uno_Any * uno_exc ) const OString cstr_msg( OUStringToOString( buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( cstr_msg.getStr() ); + OSL_TRACE( "%s", cstr_msg.getStr() ); } #endif // signal exception @@ -422,7 +422,7 @@ JNICALL Java_com_sun_star_bridges_jni_1uno_JNI_1proxy_dispatch_1call( OString cstr_msg( OUStringToOString( trace_buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( cstr_msg.getStr() ); + OSL_TRACE( "%s", cstr_msg.getStr() ); } #endif @@ -688,7 +688,7 @@ JNICALL Java_com_sun_star_bridges_jni_1uno_JNI_1proxy_finalize__J( OUStringToOString( OUSTR("freeing java uno proxy: ") + oid, RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( cstr_msg.getStr() ); + OSL_TRACE( "%s", cstr_msg.getStr() ); } #endif // revoke from uno env; has already been revoked from java env diff --git a/bridges/source/jni_uno/jni_uno2java.cxx b/bridges/source/jni_uno/jni_uno2java.cxx index 45e1fed44aec..5fa8fa3e01b3 100644 --- a/bridges/source/jni_uno/jni_uno2java.cxx +++ b/bridges/source/jni_uno/jni_uno2java.cxx @@ -135,7 +135,7 @@ void Bridge::handle_java_exc( OString cstr_trace( OUStringToOString( trace_buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( cstr_trace.getStr() ); + OSL_TRACE( "%s", cstr_trace.getStr() ); #endif } @@ -261,7 +261,7 @@ void Bridge::call_java( OString cstr_trace( OUStringToOString( trace_buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( cstr_trace.getStr() ); + OSL_TRACE( "%s", cstr_trace.getStr() ); #endif // complex return value @@ -558,7 +558,7 @@ void SAL_CALL UNO_proxy_free( uno_ExtEnvironment * env, void * proxy ) OUStringToOString( OUSTR("freeing binary uno proxy: ") + that->m_oid, RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( cstr_msg.getStr() ); + OSL_TRACE( "%s", cstr_msg.getStr() ); #endif try @@ -628,7 +628,7 @@ void SAL_CALL UNO_proxy_dispatch( OString cstr_msg( OUStringToOString( trace_buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US ) ); - OSL_TRACE( cstr_msg.getStr() ); + OSL_TRACE( "%s", cstr_msg.getStr() ); #endif try |