summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-09-11 13:23:22 -0400
committerEliot Horowitz <eliot@10gen.com>2009-09-11 13:23:22 -0400
commitfdc8d61ba3fe3afabb086078ea405196d1b0a1c8 (patch)
tree46bc1e3fdee750811e07e24fcd955b7553c2cb41
parent73329a93a05648b46af5f54c2391579f60abfe99 (diff)
downloadmongo-fdc8d61ba3fe3afabb086078ea405196d1b0a1c8.tar.gz
print hex of id also
-rw-r--r--tools/sniffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/sniffer.cpp b/tools/sniffer.cpp
index b6968f257a9..9c87a4d72a4 100644
--- a/tools/sniffer.cpp
+++ b/tools/sniffer.cpp
@@ -222,7 +222,7 @@ void got_packet(u_char *args, const struct pcap_pkthdr *header, const u_char *pa
<< inet_ntoa(ip->ip_dst) << ":" << ntohs( tcp->th_dport )
<< " " << d.getns()
<< " " << m.data->len << " bytes "
- << m.data->id;
+ << " id:" << hex << m.data->id << dec << "\t" << m.data->id;
if ( m.data->operation() == mongo::opReply )
cout << " - " << m.data->responseTo;