summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-08-22 16:35:02 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-08-22 16:35:02 +0000
commitd2b2508368a06328dc3dae5fd65de900ccee126f (patch)
treea7ff5b97568e2dd701371c714ffb5fda1bc5a791
parent75be7fa77b4ecdb572c9f32f4c8c227ca272a436 (diff)
downloadATCD-d2b2508368a06328dc3dae5fd65de900ccee126f.tar.gz
replaced use of ostream with ACE_OS::fprintf
-rw-r--r--examples/Mem_Map/IO-tests/test_io.cpp6
-rw-r--r--examples/Misc/test_dump.cpp8
2 files changed, 7 insertions, 7 deletions
diff --git a/examples/Mem_Map/IO-tests/test_io.cpp b/examples/Mem_Map/IO-tests/test_io.cpp
index 3a044d52643..c12a8a654d6 100644
--- a/examples/Mem_Map/IO-tests/test_io.cpp
+++ b/examples/Mem_Map/IO-tests/test_io.cpp
@@ -31,9 +31,9 @@ static ACE_Profile_Timer profile_timer;
static void
print_usage_and_die (void)
{
- cerr << "usage: "
- << program_name
- << " [-i input_file] [-o output_file] [-n iteration_count] [-r]\n";
+ ACE_OS::fprintf (stderr, "usage: %s"
+ " [-i input_file] [-o output_file] [-n iteration_count] [-r]\n",
+ program_name);
ACE_OS::exit (1);
}
diff --git a/examples/Misc/test_dump.cpp b/examples/Misc/test_dump.cpp
index 994cd204c7b..4428f65c4cd 100644
--- a/examples/Misc/test_dump.cpp
+++ b/examples/Misc/test_dump.cpp
@@ -1,6 +1,6 @@
-// The following code illustrates how the ACE_Dumpable mechanisms are
// $Id$
+// The following code illustrates how the ACE_Dumpable mechanisms are
// integrated into ACE components like the SOCK_Acceptor and
// SOCK_Stream.
@@ -13,7 +13,7 @@ public:
~SOCK (void) { ACE_REMOVE_OBJECT; }
void dump (void) const {
- cerr << "hello from SOCK = " << (u_long) this << endl;
+ ACE_OS::fprintf (stderr, "hello from SOCK = %lu\n", (u_long) this);
}
// ...
@@ -26,7 +26,7 @@ public:
~SOCK_Acceptor (void) { ACE_REMOVE_OBJECT; }
void dump (void) const {
- cerr << "hello from SOCK_Acceptor = " << (u_long) this << endl;
+ ACE_OS::fprintf (stderr, "hello from SOCK_Acceptor = %lu\n", (u_long) this);
}
// ...
@@ -39,7 +39,7 @@ public:
~SOCK_Stream (void) { ACE_REMOVE_OBJECT; }
void dump (void) const {
- cerr << "hello from SOCK_Stream = " << (u_long) this << endl;
+ ACE_OS::fprintf (stderr, "hello from SOCK_Stream = %lu\n", (u_long) this);
}
// ...