sc_report_handler.cc (12997:cfc14d8f4725) | sc_report_handler.cc (13080:5b49b8664269) |
---|---|
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 --- 399 unchanged lines hidden (view full) --- 408 409 str << sevName << ": "; 410 if (id >= 0) { 411 ccprintf(str, "(%c%d) ", sevName[0], id); 412 } 413 str << report.get_msg_type(); 414 415 const char *msg = report.get_msg(); | 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 --- 399 unchanged lines hidden (view full) --- 408 409 str << sevName << ": "; 410 if (id >= 0) { 411 ccprintf(str, "(%c%d) ", sevName[0], id); 412 } 413 str << report.get_msg_type(); 414 415 const char *msg = report.get_msg(); |
416 if (msg[0]) | 416 if (msg && msg[0]) |
417 str << ": " << msg; 418 419 if (report.get_severity() > SC_INFO) { 420 ccprintf(str, "\nIn file: %s:%d", report.get_file_name(), 421 report.get_line_number()); 422 423 ::sc_gem5::Process *current = ::sc_gem5::scheduler.current(); 424 const char *name = report.get_process_name(); --- 21 unchanged lines hidden --- | 417 str << ": " << msg; 418 419 if (report.get_severity() > SC_INFO) { 420 ccprintf(str, "\nIn file: %s:%d", report.get_file_name(), 421 report.get_line_number()); 422 423 ::sc_gem5::Process *current = ::sc_gem5::scheduler.current(); 424 const char *name = report.get_process_name(); --- 21 unchanged lines hidden --- |