Browse Source

changed debug output

Dave Schuyler 20 years ago
parent
commit
9f512d07e1
1 changed files with 3 additions and 1 deletions
  1. 3 1
      panda/src/express/datagramIterator.cxx

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

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