From 93a6c90dd9d53934112e6f0b66c9b74b3236e5cb Mon Sep 17 00:00:00 2001 From: Redmond Urbino Date: Sat, 7 Aug 2010 03:49:09 +0000 Subject: [PATCH] use dg.dump_hex instead of describe_message to avoid segmentation fault --- direct/src/distributed/cConnectionRepository.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/direct/src/distributed/cConnectionRepository.cxx b/direct/src/distributed/cConnectionRepository.cxx index e27630b865..053e569167 100644 --- a/direct/src/distributed/cConnectionRepository.cxx +++ b/direct/src/distributed/cConnectionRepository.cxx @@ -1130,7 +1130,7 @@ bool CConnectionRepository::check_datagram_ai(PyObject *PycallBackFunction) endTime = ClockObject::get_global_clock()->get_real_time(); if ( _time_warning < (endTime - startTime)) { nout << "msg " << _msg_type <<" from " << _msg_sender << " took "<< (endTime-startTime) << "secs to process\n"; - describe_message(nout, "RECV", _dg); + _dg.dump_hex(nout,2); } } return false; @@ -1146,7 +1146,7 @@ bool CConnectionRepository::check_datagram_ai(PyObject *PycallBackFunction) endTime = ClockObject::get_global_clock()->get_real_time(); if ( _time_warning < (endTime - startTime)) { nout << "msg " << _msg_type <<" from " << _msg_sender << " took "<< (endTime-startTime) << "secs to process\n"; - describe_message(nout, "RECV", _dg); + _dg.dump_hex(nout,2); } } return true; @@ -1157,7 +1157,7 @@ bool CConnectionRepository::check_datagram_ai(PyObject *PycallBackFunction) endTime = ClockObject::get_global_clock()->get_real_time(); if ( _time_warning < (endTime - startTime)) { nout << "msg " << _msg_type <<" from " << _msg_sender << " took "<< (endTime-startTime) << "secs to process\n"; - describe_message(nout, "RECV", _dg); + _dg.dump_hex(nout,2); } }