summaryrefslogtreecommitdiffstats
path: root/stoc/test
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-12 12:51:35 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-12 14:19:49 +0100
commitd0c187cc8cc78b661726dad8a75d20af595085f1 (patch)
tree4940c13a4f891127a4b4e426f10f25e340790ac2 /stoc/test
parentMove OSL_ENSURE(0,...) to OSL_FAIL(...) (diff)
downloadcore-d0c187cc8cc78b661726dad8a75d20af595085f1.tar.gz
core-d0c187cc8cc78b661726dad8a75d20af595085f1.zip
OSL_TRACE: Use format string
Diffstat (limited to 'stoc/test')
-rw-r--r--stoc/test/javavm/testjavavm.cxx2
-rw-r--r--stoc/test/testconv.cxx2
-rw-r--r--stoc/test/testcorefl.cxx2
-rw-r--r--stoc/test/testintrosp.cxx2
4 files changed, 4 insertions, 4 deletions
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" );
}