소스 검색

better hex output

Darren Ranalli 19 년 전
부모
커밋
ad7c978ef5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      panda/src/express/datagramIterator.cxx

+ 1 - 1
panda/src/express/datagramIterator.cxx

@@ -179,7 +179,7 @@ write(ostream &out, unsigned int indent) const {
   out.width(indent+2); out<<""<<"_current_index "<<_current_index;
   out.width(indent+2); out<<""<<"_current_index "<<_current_index;
   if (_datagram) {
   if (_datagram) {
     out<<""<<" (of "<<(get_datagram().get_length())<<")";
     out<<""<<" (of "<<(get_datagram().get_length())<<")";
-    out<<""<<" or in hex that's "<<(void*)_current_index<<" (of "
+    out<<""<<" / 0x"<<(void*)_current_index<<" (of 0x"
       <<(void*)(get_datagram().get_length())<<")\n";
       <<(void*)(get_datagram().get_length())<<")\n";
     get_datagram().write(out, indent+2);
     get_datagram().write(out, indent+2);
   } else {
   } else {