bug#5824

parent d7bdb6be
...@@ -611,10 +611,12 @@ CommandInterpreter::executeHelp(char* parameters) ...@@ -611,10 +611,12 @@ CommandInterpreter::executeHelp(char* parameters)
<< endl; << endl;
ndbout << "<category> = "; ndbout << "<category> = ";
for(int i = 0; i<CFG_MIN_LOGLEVEL; i++){ for(int i = CFG_MIN_LOGLEVEL; i <= CFG_MAX_LOGLEVEL; i++){
ndbout << ndb_mgm_get_event_category_string((ndb_mgm_event_category)i); const char *str= ndb_mgm_get_event_category_string((ndb_mgm_event_category)i);
if (i < CFG_MIN_LOGLEVEL - 1) { if (str) {
if (i != CFG_MIN_LOGLEVEL)
ndbout << " | "; ndbout << " | ";
ndbout << str;
} }
} }
ndbout << endl; ndbout << endl;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment