sc_report_handler.cc (13313:306a97d3b040) | sc_report_handler.cc (13322:7391057615bd) |
---|---|
1/* 2 * Copyright 2018 Google, Inc. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are 6 * met: redistributions of source code must retain the above copyright 7 * notice, this list of conditions and the following disclaimer; 8 * redistributions in binary form must reproduce the above copyright --- 94 unchanged lines hidden (view full) --- 103 sc_gem5::reportHandlerProc(report, actions); 104} 105 106void 107sc_report_handler::report(sc_severity severity, int id, const char *msg, 108 const char *file, int line) 109{ 110 std::string &msg_type = sc_gem5::reportIdToMsgMap[id]; | 1/* 2 * Copyright 2018 Google, Inc. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are 6 * met: redistributions of source code must retain the above copyright 7 * notice, this list of conditions and the following disclaimer; 8 * redistributions in binary form must reproduce the above copyright --- 94 unchanged lines hidden (view full) --- 103 sc_gem5::reportHandlerProc(report, actions); 104} 105 106void 107sc_report_handler::report(sc_severity severity, int id, const char *msg, 108 const char *file, int line) 109{ 110 std::string &msg_type = sc_gem5::reportIdToMsgMap[id]; |
111 if (msg_type == "") 112 msg_type = "unknown id"; | |
113 114 if (sc_gem5::reportWarningsAsErrors && severity == SC_WARNING) 115 severity = SC_ERROR; 116 117 report(severity, msg_type.c_str(), msg, file, line); 118} 119 120sc_actions --- 275 unchanged lines hidden --- | 111 112 if (sc_gem5::reportWarningsAsErrors && severity == SC_WARNING) 113 severity = SC_ERROR; 114 115 report(severity, msg_type.c_str(), msg, file, line); 116} 117 118sc_actions --- 275 unchanged lines hidden --- |