Anonymous | Login | 2022-06-26 05:34 UTC | ![]() |
My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
0000327 | OMNeT++ | simulation kernel | public | 2011-05-31 17:05 | 2011-05-31 17:05 | ||||||||
Reporter | jesjones | ||||||||||||
Assigned To | |||||||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||||||
Status | new | Resolution | open | ||||||||||
Platform | OS | OS Version | |||||||||||
Product Version | 4.1 | ||||||||||||
Target Version | Fixed in Version | ||||||||||||
Summary | 0000327: Use stderr with undisposedObject | ||||||||||||
Description | It's helpful to report errors using stderr instead of stdout (e.g. we run simulations using a custom app which colors errors in red making them much more visible). | ||||||||||||
Additional Information | @@ -1325,17 +1325,17 @@ void EnvirBase::sputn(const char *s, int n) { if (record_eventlog) eventlogmgr->sputn(s, n); } void EnvirBase::undisposedObject(cObject *obj) { if (opt_print_undisposed) - ::printf("undisposed object: (%s) %s -- check module destructor\n", obj->getClassName(), obj->getFullPath().c_str()); + ::fprintf(stderr, "undisposed object: (%s) %s -- check module destructor\n", obj->getClassName(), obj->getFullPath().c_str()); } //------------------------------------------------------------- void EnvirBase::processFileName(opp_string& fname) { std::string text = fname.c_str(); | ||||||||||||
Tags | No tags attached. | ||||||||||||
Attached Files | |||||||||||||
![]() |
|||
Date Modified | Username | Field | Change |
2011-05-31 17:05 | jesjones | New Issue |
Copyright © 2000 - 2022 MantisBT Team |