diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2008-07-28 14:21:47 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2008-07-28 14:21:47 +0000 |
commit | 883022ad24f0373b44b181f76f0a48dbab572805 (patch) | |
tree | cfd07b2803780cd57b0c66ee09e2aba21d6d453f /TAO/tao/GIOP_Message_Base.cpp | |
parent | 579492e90838fed9f974dbecf91bf8d382fc36ef (diff) | |
download | ATCD-883022ad24f0373b44b181f76f0a48dbab572805.tar.gz |
Mon Jul 28 14:20:11 UTC 2008 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tao/GIOP_Message_Base.cpp')
-rw-r--r-- | TAO/tao/GIOP_Message_Base.cpp | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/TAO/tao/GIOP_Message_Base.cpp b/TAO/tao/GIOP_Message_Base.cpp index d4d4b497d3b..eab3006acbd 100644 --- a/TAO/tao/GIOP_Message_Base.cpp +++ b/TAO/tao/GIOP_Message_Base.cpp @@ -704,7 +704,6 @@ TAO_GIOP_Message_Base::process_reply_message ( qd->msg_block ()->length ()); } - // Create a empty buffer on stack // NOTE: We use the same data block in which we read the message and // we pass it on to the higher layers of the ORB. So we dont to any @@ -1444,6 +1443,11 @@ TAO_GIOP_Message_Base::dump_msg (const char *label, const u_char *ptr, size_t len) { + if (TAO_debug_level < 10) + { + return; + } + static const char digits[] = "0123456789ABCD"; static const char *names[] = { @@ -1464,12 +1468,12 @@ TAO_GIOP_Message_Base::dump_msg (const char *label, message_name = names[slot]; // Byte order. - int byte_order = ptr[TAO_GIOP_MESSAGE_FLAGS_OFFSET] & 0x01; - int compressed = ptr[TAO_GIOP_MESSAGE_FLAGS_OFFSET] & 0x04; + int const byte_order = ptr[TAO_GIOP_MESSAGE_FLAGS_OFFSET] & 0x01; + int const compressed = ptr[TAO_GIOP_MESSAGE_FLAGS_OFFSET] & 0x04; // Get the version info - CORBA::Octet major = ptr[TAO_GIOP_VERSION_MAJOR_OFFSET]; - CORBA::Octet minor = ptr[TAO_GIOP_VERSION_MINOR_OFFSET]; + CORBA::Octet const major = ptr[TAO_GIOP_VERSION_MAJOR_OFFSET]; + CORBA::Octet const minor = ptr[TAO_GIOP_VERSION_MINOR_OFFSET]; // request/reply id. CORBA::ULong tmp = 0; @@ -1518,11 +1522,10 @@ TAO_GIOP_Message_Base::dump_msg (const char *label, message_name, *id)); - if (TAO_debug_level >= 10) - ACE_HEX_DUMP ((LM_DEBUG, - (const char *) ptr, - len, - ACE_TEXT ("GIOP message"))); + ACE_HEX_DUMP ((LM_DEBUG, + (const char *) ptr, + len, + ACE_TEXT ("GIOP message"))); } int |