OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000327OMNeT++simulation kernelpublic2011-05-31 17:052011-05-31 17:05
Reporterjesjones 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version4.1 
Target VersionFixed in Version 
Summary0000327: Use stderr with undisposedObject
DescriptionIt'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();
 
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-05-31 17:05 jesjones New Issue


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker