OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000328OMNeT++simulation kernelpublic2011-05-31 17:082011-09-14 12:48
jesjones 
andras 
normalminoralways
resolvedfixed 
4.1 
4.2 
0000328: componentInitBegin is too spammy
Not sure that the original code was correct (it seems like it should be if opt_expressmode instead of not if) but there should be a way to suppress the zillion initializing messages when running via the command line.
@@ -553,17 +553,17 @@ const char *Cmdenv::progressPercentage()
         // against this string for detecting user input
         sprintf(buf, " %d%% completed", (int)(100*ratio));
         return buf;
     }
 }
 
 void Cmdenv::componentInitBegin(cComponent *component, int stage)
 {
- if (!opt_expressmode)
+ if (opt_modulemsgs) // only show these messages when cmdenv-module-messages = true
         ::fprintf(fout, "Initializing %s %s, stage %d\n",
                 component->isModule() ? "module" : "channel", component->getFullPath().c_str(), stage);
 }
 
 void Cmdenv::signalHandler(int signum)
 {
     if (signum == SIGINT || signum == SIGTERM)
         sigint_received = true;
No tags attached.
Issue History
2011-05-31 17:08jesjonesNew Issue
2011-09-14 12:48andrasNote Added: 0000552
2011-09-14 12:48andrasStatusnew => resolved
2011-09-14 12:48andrasFixed in Version => 4.2
2011-09-14 12:48andrasResolutionopen => fixed
2011-09-14 12:48andrasAssigned To => andras

Notes
(0000552)
andras   
2011-09-14 12:48   
Condition changed to:

  if (!opt_expressmode && opt_eventbanners && component->isEvEnabled())

which is the same as for printing event banners. Corresponds to the following
config options: cmdenv-express-mode, cmdenv-event-banners, **.cmdenv-ev-output