summaryrefslogtreecommitdiff
path: root/ndb/src/mgmclient
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2004-09-30 21:12:46 +0000
committerunknown <tomas@poseidon.ndb.mysql.com>2004-09-30 21:12:46 +0000
commit8a63a0b587c15c5ca87fb290d8e2c330acdcc6c0 (patch)
treed46e3082eebec6bb251e4a2e06b5fed6a4e1ee88 /ndb/src/mgmclient
parentbfcbca22ef9a667f699f7b7268198d92ce4ba944 (diff)
downloadmariadb-git-8a63a0b587c15c5ca87fb290d8e2c330acdcc6c0.tar.gz
bug#5824
Diffstat (limited to 'ndb/src/mgmclient')
-rw-r--r--ndb/src/mgmclient/CommandInterpreter.cpp10
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;