This is an automated email from the ASF dual-hosted git repository.

bbender pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-native.git


The following commit(s) were added to refs/heads/develop by this push:
     new 66d7cf3  GEODE-9154: Accept hex format for pointers in gnmsg, as well 
as decimal (#785)
66d7cf3 is described below

commit 66d7cf343bd6dd40bed1e561a2ee9d157169fe81
Author: Blake Bender <[email protected]>
AuthorDate: Thu Apr 15 10:52:41 2021 -0700

    GEODE-9154: Accept hex format for pointers in gnmsg, as well as decimal 
(#785)
    
    - printf output for "%p" appears to have changed, need to accomodate this
    
    Co-authored-by: Blake Bender <[email protected]>
---
 tools/gnmsg/client_message_decoder.py | 4 ++--
 tools/gnmsg/server_message_decoder.py | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/tools/gnmsg/client_message_decoder.py 
b/tools/gnmsg/client_message_decoder.py
index 0c1aaa9..23dbb4d 100644
--- a/tools/gnmsg/client_message_decoder.py
+++ b/tools/gnmsg/client_message_decoder.py
@@ -125,7 +125,7 @@ class ClientMessageDecoder(DecoderBase):
     def get_send_trace_parts_base(self, line, parts):
         result = False
         expression = re.compile(
-            
r"(\d\d:\d\d:\d\d\.\d+).+:\d+\s+(\d+)\]\s*TcrConnection::send:\s*\[([\d|a-f|A-F|x|X]+).*sending
 request to endpoint.*bytes:\s*([\d|a-f|A-F]+)"
+            
r"(\d\d:\d\d:\d\d\.\d+).+:\d+\s+([\d|a-f|A-F|x|X]+)\]\s*TcrConnection::send:\s*\[([\d|a-f|A-F|x|X]+).*sending
 request to endpoint.*bytes:\s*([\d|a-f|A-F]+)"
         )
         match = expression.search(line)
         if match:
@@ -144,7 +144,7 @@ class ClientMessageDecoder(DecoderBase):
     def get_add_security_trace_parts(self, line, parts):
         result = False
         expression = re.compile(
-            
r"(\d\d:\d\d:\d\d\.\d+).*(\d+)\]\s*TcrMessage::addSecurityPart\s*\[(0x[\d|a-f|A-F]*).*length\s*=\s*(\d+)\s*,\s*encrypted\s+ID\s*=\s*([\d|a-f|A-F]+)"
+            
r"(\d\d:\d\d:\d\d\.\d+).*([\d|a-f|A-F|x|X]+)\]\s*TcrMessage::addSecurityPart\s*\[(0x[\d|a-f|A-F]*).*length\s*=\s*(\d+)\s*,\s*encrypted\s+ID\s*=\s*([\d|a-f|A-F]+)"
         )
         match = expression.search(line)
         if match:
diff --git a/tools/gnmsg/server_message_decoder.py 
b/tools/gnmsg/server_message_decoder.py
index 343d933..dfb9df9 100644
--- a/tools/gnmsg/server_message_decoder.py
+++ b/tools/gnmsg/server_message_decoder.py
@@ -82,7 +82,7 @@ class ServerMessageDecoder(DecoderBase):
     def associate_connection_to_tid(self, line):
         result = False
         expression = re.compile(
-            
r"(\d\d:\d\d:\d\d\.\d+).+:\d+\s+(\d+)\]\s*TcrConnection::send:\s*\[([\d|a-f|A-F|x|X]+).*sending
 request to endpoint.*bytes:\s*([\d|a-f|A-F]+)"
+            
r"(\d\d:\d\d:\d\d\.\d+).+:\d+\s+([\d|a-f|A-F|x|X]+)\]\s*TcrConnection::send:\s*\[([\d|a-f|A-F|x|X]+).*sending
 request to endpoint.*bytes:\s*([\d|a-f|A-F]+)"
         )
         match = expression.search(line)
         if match:
@@ -96,7 +96,7 @@ class ServerMessageDecoder(DecoderBase):
     def get_receive_trace_header_with_pointer(self, line, parts):
         result = False
         expression = re.compile(
-            
r"(\d\d:\d\d:\d\d\.\d+).+:\d+\s+(\d+)\]\s*TcrConnection::readMessage\(([\d|a-f|A-F|x|X]+)\):.*received
 header from endpoint.*bytes:\s*([\d|a-f|A-F]+)"
+            
r"(\d\d:\d\d:\d\d\.\d+).+:\d+\s+([\d|a-f|A-F|x|X]+)\]\s*TcrConnection::readMessage\(([\d|a-f|A-F|x|X]+)\):.*received
 header from endpoint.*bytes:\s*([\d|a-f|A-F]+)"
         )
         match = expression.search(line)
         if match:
@@ -116,7 +116,7 @@ class ServerMessageDecoder(DecoderBase):
     def get_receive_trace_header_without_pointer(self, line, parts):
         result = False
         expression = re.compile(
-            
r"(\d\d:\d\d:\d\d\.\d+).*:\d+\s+(\d+)\]\s*TcrConnection::readMessage:\s*received
 header from endpoint.*bytes:\s*([\d|a-f|A-F]+)"
+            
r"(\d\d:\d\d:\d\d\.\d+).*:\d+\s+([\d|a-f|A-F|x|X]+)\]\s*TcrConnection::readMessage:\s*received
 header from endpoint.*bytes:\s*([\d|a-f|A-F]+)"
         )
         match = expression.search(line)
         if match:
@@ -161,7 +161,7 @@ class ServerMessageDecoder(DecoderBase):
     def get_receive_trace_body_parts(self, line, parts):
         result = False
         expression = re.compile(
-            ":\d+\s+(\d+)\]\s*TcrConnection::readMessage: received message 
body from endpoint.*bytes:\s*([\d|a-f|A-F]+)"
+            ":\d+\s+([\d|a-f|A-F|x|X]+)\]\s*TcrConnection::readMessage: 
received message body from endpoint.*bytes:\s*([\d|a-f|A-F]+)"
         )
         match = expression.search(line)
         if match:

Reply via email to