Permalink
Browse files

modify fbproxy.py dump item.

  • Loading branch information...
1 parent 31c264a commit 7881c4831479a45c2599b2ddfaaf688a888acdf4 @nakagami committed May 22, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 misc/fbproxy.py
View
@@ -1815,6 +1815,7 @@ def op_que_events(sock):
up = xdrlib.Unpacker(msg)
print '\tdb_handle=', up.unpack_int()
prs = up.unpack_string() # param raw strings
+ print '\tprs=[' + binascii.b2a_hex(prs) + ']'
param_strings = []
assert ord(prs[0]) == 1
i = 1
@@ -1864,7 +1865,7 @@ def recv_forever(server_name, server_port, listen_port):
while True:
r = server_socket.recv(1)
if r:
- print '>%02x' % (ord(r),),
+ print '%02x' % (ord(r),),
client_socket.send(r)
else:
print 'recv thread exit'

0 comments on commit 7881c48

Please sign in to comment.