summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2003-03-14 20:56:02 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2003-03-14 20:56:02 +0000
commit103978c66d172203aa5aa40a0ce39ef5f133fcf5 (patch)
tree766ae29e059d5e9a40d87d3b6ebd65b7af5b0635
parent4bf6c8b387265003423b2fbb81860e7f3df29bcd (diff)
downloadATCD-103978c66d172203aa5aa40a0ce39ef5f133fcf5.tar.gz
ChangeLogTag:Thu Mar 13 16:11:48 2003 Ossama Othman <ossama@uci.edu>
-rw-r--r--ChangeLog1
-rw-r--r--tests/Proactor_Test.cpp14
2 files changed, 11 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 6de360b28af..2b430febc64 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@ Fri Mar 14 11:49:27 2003 Steve Huston <shuston@riverace.com>
Thu Mar 13 16:11:48 2003 Ossama Othman <ossama@uci.edu>
* ace/Log_Msg.cpp (log_hexdump):
+ * tests/Proactor_Test.cpp:
Use the ACE_SIZE_T_FORMAT_SPECIFIER macro to specify the correct
size_t format specifier. Fixes a warning exhibited on 32-bit
diff --git a/tests/Proactor_Test.cpp b/tests/Proactor_Test.cpp
index 4b0340a74f4..b52849541f1 100644
--- a/tests/Proactor_Test.cpp
+++ b/tests/Proactor_Test.cpp
@@ -2000,12 +2000,14 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
ACE_TCHAR bufr [256];
ACE_OS::sprintf (bufs,
- ACE_TEXT ("%lu(%ld)"),
+ ACE_SIZE_T_FORMAT_SPECIFIER
+ ACE_TEXT ("(%ld)"),
connector.get_total_snd (),
connector.get_total_w ());
ACE_OS::sprintf (bufr,
- ACE_TEXT ("%lu(%ld)"),
+ ACE_SIZE_T_FORMAT_SPECIFIER
+ ACE_TEXT ("(%ld)"),
connector.get_total_rcv (),
connector.get_total_r ());
@@ -2014,11 +2016,15 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
bufs,
bufr));
- ACE_OS::sprintf (bufs, ACE_TEXT ("%lu(%ld)"),
+ ACE_OS::sprintf (bufs,
+ ACE_SIZE_T_FORMAT_SPECIFIER
+ ACE_TEXT ("(%ld)"),
acceptor.get_total_snd (),
acceptor.get_total_w ());
- ACE_OS::sprintf (bufr, ACE_TEXT ("%lu(%ld)"),
+ ACE_OS::sprintf (bufr,
+ ACE_SIZE_T_FORMAT_SPECIFIER
+ ACE_TEXT ("(%ld)"),
acceptor.get_total_rcv (),
acceptor.get_total_r ());