diff options
author | Martin Schwenke <martin@meltin.net> | 2013-09-23 16:21:30 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2013-09-25 14:35:31 +1000 |
commit | 066b671de07481ed8ce913491658d4c72785aac0 (patch) | |
tree | 89b2c176708feec8ec2f854367f87f201a2fc9c1 /ctdb/common | |
parent | 5b2c8ba880db28b798a1a5609dc0933c6ce1afc8 (diff) | |
download | samba-066b671de07481ed8ce913491658d4c72785aac0.tar.gz |
utils: Make debug level strings case-insensitive
Signed-off-by: Martin Schwenke <martin@meltin.net>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>
(This used to be ctdb commit c700dd0c7b6b43b61b3e231643b5d7cbe2f9592a)
Diffstat (limited to 'ctdb/common')
-rw-r--r-- | ctdb/common/ctdb_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/common/ctdb_util.c b/ctdb/common/ctdb_util.c index 11f9d83429b..d4bfeeb56a5 100644 --- a/ctdb/common/ctdb_util.c +++ b/ctdb/common/ctdb_util.c @@ -657,7 +657,7 @@ int32_t get_debug_by_desc(const char *desc) int i; for (i=0; debug_levels[i].description != NULL; i++) { - if (!strcmp(debug_levels[i].description, desc)) { + if (!strcasecmp(debug_levels[i].description, desc)) { return debug_levels[i].level; } } |