summaryrefslogtreecommitdiff
path: root/ACE/tests/Stack_Trace_Test.cpp
diff options
context:
space:
mode:
authormitza <mitza@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2008-12-31 15:40:56 +0000
committermitza <mitza@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2008-12-31 15:40:56 +0000
commit7f8f62ea3d538c5ab37fa3fd81f726bcb40fabc9 (patch)
tree2133e9fb6098fa5928cc43e432b7374da293a30b /ACE/tests/Stack_Trace_Test.cpp
parent1ebb16964cb01a1f9f6bb44df675990e02511960 (diff)
downloadATCD-7f8f62ea3d538c5ab37fa3fd81f726bcb40fabc9.tar.gz
ChangeLogTag: Wed Dec 31 15:38:33 UTC 2008 Adam Mitz <mitza@ociweb.com>
Diffstat (limited to 'ACE/tests/Stack_Trace_Test.cpp')
-rw-r--r--ACE/tests/Stack_Trace_Test.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/ACE/tests/Stack_Trace_Test.cpp b/ACE/tests/Stack_Trace_Test.cpp
index a02b062fd43..9823d432178 100644
--- a/ACE/tests/Stack_Trace_Test.cpp
+++ b/ACE/tests/Stack_Trace_Test.cpp
@@ -34,10 +34,10 @@ struct SomeException
{
static const ssize_t SKIP = 1; //@TODO: #ifdef this for MACOSX which needs 2
SomeException () : where_(SKIP), explanation_ ("") { }
- SomeException (const char* explanation)
+ SomeException (const char *explanation)
: where_(SKIP), explanation_(explanation) { }
ACE_Stack_Trace where_;
- const char* explanation_;
+ const char *explanation_;
};
void
@@ -52,17 +52,17 @@ run_main (int, ACE_TCHAR *[])
ACE_START_TEST (ACE_TEXT ("Stack_Trace_Test"));
ACE_Stack_Trace t1;
- ACE_DEBUG ((LM_DEBUG, "t1 trace is %s\n", t1.c_str()));
+ ACE_DEBUG ((LM_DEBUG, "t1 trace is %C\n", t1.c_str()));
ACE_Stack_Trace t2(t1);
- ACE_DEBUG ((LM_DEBUG, "t2 (copied) trace is %s\n",
+ ACE_DEBUG ((LM_DEBUG, "t2 (copied) trace is %C\n",
(ACE_OS::strcmp (t1.c_str(), t2.c_str()) == 0) ? "same" : "different"));
ACE_Stack_Trace t3;
- ACE_DEBUG ((LM_DEBUG, "t3 trace before assignment is %s\n",
+ ACE_DEBUG ((LM_DEBUG, "t3 trace before assignment is %C\n",
(ACE_OS::strcmp (t1.c_str(), t3.c_str()) == 0) ? "same" : "different"));
t3 = t1;
- ACE_DEBUG ((LM_DEBUG, "t3 trace after assignment is %s\n",
+ ACE_DEBUG ((LM_DEBUG, "t3 trace after assignment is %C\n",
(ACE_OS::strcmp (t1.c_str(), t3.c_str()) == 0) ? "same" : "different"));
try {
@@ -70,13 +70,13 @@ run_main (int, ACE_TCHAR *[])
}
catch (SomeException& e) {
ACE_DEBUG ((LM_DEBUG,
- "SomeException caught at\n%?\n; thrown at\n%s",
+ "SomeException caught at\n%?\n; thrown at\n%C",
e.where_.c_str()));
}
ACE_Stack_Trace one_frame_only(0, 1);
ACE_DEBUG ((LM_DEBUG,
- "stack trace of only one frame:\n%s",
+ "stack trace of only one frame:\n%C",
one_frame_only.c_str()));
ACE_DEBUG ((LM_DEBUG, "getting ready to end the test at %?\n"));