summaryrefslogtreecommitdiff
path: root/TAO/tao/GIOP_Message_Lite.cpp
diff options
context:
space:
mode:
authorbala <balanatarajan@users.noreply.github.com>2001-07-28 02:41:58 +0000
committerbala <balanatarajan@users.noreply.github.com>2001-07-28 02:41:58 +0000
commit527dff9e2299a7576e644135177097c1b8df3f49 (patch)
tree72ea77c65d829ddd7a7fe1c06ebe9548cd22e0bb /TAO/tao/GIOP_Message_Lite.cpp
parent9dc4f8525268312c51c20329beb24b77b47e12b3 (diff)
downloadATCD-527dff9e2299a7576e644135177097c1b8df3f49.tar.gz
ChangeLogTag: Fri Jul 27 21:38:58 2001 Balachandran Natarajan <bala@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/GIOP_Message_Lite.cpp')
-rw-r--r--TAO/tao/GIOP_Message_Lite.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/TAO/tao/GIOP_Message_Lite.cpp b/TAO/tao/GIOP_Message_Lite.cpp
index 12b71b480c8..de9e23e9e24 100644
--- a/TAO/tao/GIOP_Message_Lite.cpp
+++ b/TAO/tao/GIOP_Message_Lite.cpp
@@ -1553,12 +1553,12 @@ TAO_GIOP_Message_Lite::dump_msg (const char *label,
if (ptr[TAO_GIOP_LITE_MESSAGE_TYPE_OFFSET] == TAO_GIOP_REQUEST ||
ptr[TAO_GIOP_LITE_MESSAGE_TYPE_OFFSET] == TAO_GIOP_REPLY)
{
+ // We are not sure where the read pointer is pointing
+ // to. So, try to align teh pointer to a 4 byte boundary.
char *buf = ACE_ptr_align_binary (ptr + TAO_GIOP_LITE_HEADER_LEN, 4);
- // @@ Only works if ServiceContextList is empty....
id = ACE_reinterpret_cast (CORBA::ULong *,
(char * ) (buf));
-
}
// Print.
@@ -1570,6 +1570,12 @@ TAO_GIOP_Message_Lite::dump_msg (const char *label,
(byte_order == TAO_ENCAP_BYTE_ORDER) ? "my" : "other",
message_name,
*id));
+
+ if (TAO_debug_level >= 10)
+ ACE_HEX_DUMP ((LM_DEBUG,
+ (const char *) ptr,
+ len,
+ ACE_TEXT ("GIOP lite message")));
}
}