From fdc8d61ba3fe3afabb086078ea405196d1b0a1c8 Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Fri, 11 Sep 2009 13:23:22 -0400 Subject: [PATCH] print hex of id also --- tools/sniffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;