summaryrefslogtreecommitdiff
path: root/examples/Reactor
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2000-11-15 00:37:23 +0000
committerSteve Huston <shuston@riverace.com>2000-11-15 00:37:23 +0000
commitc56dd3596c3f3d15e95ce0bf8f37ea46d4701ef3 (patch)
treea5166f18bc138f8a03c651506e55fae749dac60d /examples/Reactor
parent9b2b7e2fa9386f4423dee7641f63350edc8daf20 (diff)
downloadATCD-c56dd3596c3f3d15e95ce0bf8f37ea46d4701ef3.tar.gz
ChangeLogTag:Tue Nov 14 19:36:47 2000 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'examples/Reactor')
-rw-r--r--examples/Reactor/Proactor/test_aiosig_ace.cpp31
1 files changed, 21 insertions, 10 deletions
diff --git a/examples/Reactor/Proactor/test_aiosig_ace.cpp b/examples/Reactor/Proactor/test_aiosig_ace.cpp
index bfb36d78b46..5b633db0fcf 100644
--- a/examples/Reactor/Proactor/test_aiosig_ace.cpp
+++ b/examples/Reactor/Proactor/test_aiosig_ace.cpp
@@ -245,17 +245,28 @@ query_aio_completions (void)
"%p:Invalid control block was send to <aio_return>\n"),
-1);
if (number_of_compleions == 0)
- // Print the buffer.
- ACE_DEBUG ((LM_DEBUG,
- "\n Number of bytes transferred : %d\n The buffer : %s \n",
- nbytes,
- mb1.rd_ptr ()));
+ {
+ // Print the buffer.
+ ACE_DEBUG ((LM_DEBUG,
+ "\n Number of bytes transferred : %d\n",
+ nbytes));
+ // Note... the dumps of the buffers are disabled because they
+ // may easily overrun the ACE_Log_Msg output buffer. If you need
+ // to turn the on for some reason, be careful of this.
+#if 0
+ ACE_DEBUG ((LM_DEBUG, "The buffer : %s \n", mb1.rd_ptr ()));
+#endif /* 0 */
+ }
else
- // Print the buffer.
- ACE_DEBUG ((LM_DEBUG,
- "\n Number of bytes transferred : %d\n The buffer : %s \n",
- nbytes,
- mb2.rd_ptr ()));
+ {
+ // Print the buffer.
+ ACE_DEBUG ((LM_DEBUG,
+ "\n Number of bytes transferred : %d\n",
+ nbytes));
+#if 0
+ ACE_DEBUG ((LM_DEBUG, "The buffer : %s \n", mb2.rd_ptr ()));
+#endif /* 0 */
+ }
}
return 0;