diff options
author | unknown <tomas@poseidon.ndb.mysql.com> | 2004-09-30 21:12:46 +0000 |
---|---|---|
committer | unknown <tomas@poseidon.ndb.mysql.com> | 2004-09-30 21:12:46 +0000 |
commit | 8a63a0b587c15c5ca87fb290d8e2c330acdcc6c0 (patch) | |
tree | d46e3082eebec6bb251e4a2e06b5fed6a4e1ee88 /ndb/src/mgmclient | |
parent | bfcbca22ef9a667f699f7b7268198d92ce4ba944 (diff) | |
download | mariadb-git-8a63a0b587c15c5ca87fb290d8e2c330acdcc6c0.tar.gz |
bug#5824
Diffstat (limited to 'ndb/src/mgmclient')
-rw-r--r-- | ndb/src/mgmclient/CommandInterpreter.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ndb/src/mgmclient/CommandInterpreter.cpp b/ndb/src/mgmclient/CommandInterpreter.cpp index fbb74d7c151..41d642b3b23 100644 --- a/ndb/src/mgmclient/CommandInterpreter.cpp +++ b/ndb/src/mgmclient/CommandInterpreter.cpp @@ -611,10 +611,12 @@ CommandInterpreter::executeHelp(char* parameters) << endl; ndbout << "<category> = "; - for(int i = 0; i<CFG_MIN_LOGLEVEL; i++){ - ndbout << ndb_mgm_get_event_category_string((ndb_mgm_event_category)i); - if (i < CFG_MIN_LOGLEVEL - 1) { - ndbout << " | "; + for(int i = CFG_MIN_LOGLEVEL; i <= CFG_MAX_LOGLEVEL; i++){ + const char *str= ndb_mgm_get_event_category_string((ndb_mgm_event_category)i); + if (str) { + if (i != CFG_MIN_LOGLEVEL) + ndbout << " | "; + ndbout << str; } } ndbout << endl; |