NS-2.27 and Leach

Friday, April 16, 2004

log_target->buffer() changed

Problem:
In the file rcagent.cc and bsagent.cc, log_target->buffer() is no longer being used

Fix:
Guessing from common/mobilenode.cc, it probably changed to log_target_->pt_->buffer(); After looking at trace/trace.h and trace/basetrace.h, I'm pretty sure that it is. Same applies for the log_target_->pt_->dump(); call.

Changed

sprintf(log_target->buffer(),
"C %.5f %s",
s.clock(),
msg);
log_target->dump();


to

sprintf(log_target_->pt_->buffer(),
"C %.5f %s",
s.clock(),
msg);
log_target_->pt_->dump();


Note: Remember to change rcagent.h's (and bsagent.h)class attribute definition of log_target to log_target_, and all other references to the old attribute name in rcagent.cc(and bsagent.cc)

0 Comments:

Post a Comment

<< Home