-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviews.gem5.org/r/2456/
-----------------------------------------------------------

(Updated Oct. 9, 2014, 2:33 p.m.)


Review request for Default.


Repository: gem5


Description (updated)
-------

Changeset 10457:29dc41797b87
---------------------------
base: Reimplement the DPRINTF mechanism in a Logger class

This patch adds a Logger class encapsulating dprintf.  This allows
variants of DPRINTF logging to be constructed and substituted in
place of the default behaviour.

The Logger provides a logMessage(when, name, format, ...) member
function like Trace::dprintf and a getOstream member function to
use a raw ostream for logging.

A class OstreamLogger is provided which generates the customary
debugging output with Trace::OstreamLogger::logMessage being the
old Trace::dprintf.


Diffs (updated)
-----

  src/base/trace.hh 148b96b7bc77 
  src/base/trace.cc 148b96b7bc77 
  src/python/swig/trace.i 148b96b7bc77 

Diff: http://reviews.gem5.org/r/2456/diff/


Testing
-------


Thanks,

Andreas Hansson

_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to