util/systemc/gem5_within_systemc/sc_logger.cc
/** Log a single message as a single sc_report call */
Log a single message as a single sc_report call
Log a single message as a single sc_report call
void
Logger::logMessage(gem5::Tick when, const std::string &name,
    const std::string &flag, const std::string &message)
{
    std::string message_without_nl = message;
    message_without_nl.erase(
        message_without_nl.find_last_not_of(" \n\r") + 1);
    SC_REPORT_INFO(name.c_str(), message_without_nl.c_str());
}
void Logger :: logMessage ( gem5 :: Tick when , const std :: string & name , const std :: string & flag , const std :: string & message ) { std :: string message_without_nl = message ; message_without_nl . erase ( message_without_nl . find_last_not_of ( " \n \r " ) + 1 ) ; SC_REPORT_INFO ( name . c_str ( ) , message_without_nl . c_str ( ) ) ; }
Log a single message as a single sc_report call
Log a single message as a single sc_report call
/* Need to chop the newline off the message */