From 8db21b65844dbce810a92f4b80759c582c1c37ad Mon Sep 17 00:00:00 2001 From: nikita Date: Wed, 22 Aug 2007 12:14:59 +0000 Subject: [PATCH] fix wrong #endif appellation. --- lnet/libcfs/debug.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lnet/libcfs/debug.c b/lnet/libcfs/debug.c index 862918a..1af9c13 100644 --- a/lnet/libcfs/debug.c +++ b/lnet/libcfs/debug.c @@ -228,7 +228,7 @@ libcfs_debug_mask2str(char *str, int size, int mask, int is_subsys) str[len] = ' '; len++; } - + while (*token != 0) { if (len < size) str[len] = *token; @@ -264,7 +264,7 @@ libcfs_debug_token2mask(int *mask, const char *str, int len, int is_subsys) token = fn(bit); if (token == NULL) /* unused? */ continue; - + /* strcasecmp */ for (j = 0; ; j++) { if (j == len) { /* end of token */ @@ -274,13 +274,13 @@ libcfs_debug_token2mask(int *mask, const char *str, int len, int is_subsys) } break; } - + if (token[j] == 0) break; - + if (str[j] == token[j]) continue; - + if (str[j] < 'A' || 'Z' < str[j]) break; @@ -288,7 +288,7 @@ libcfs_debug_token2mask(int *mask, const char *str, int len, int is_subsys) break; } } - + return -EINVAL; /* no match */ } @@ -306,7 +306,7 @@ libcfs_debug_str2mask(int *mask, const char *str, int is_subsys) * appears first in , '*mask' is used as the starting point * (relative), otherwise 0 is used (absolute). An operator applies to * all following tokens up to the next operator. */ - + while (*str != 0) { while (isspace(*str)) /* skip whitespace */ str++; @@ -334,13 +334,13 @@ libcfs_debug_str2mask(int *mask, const char *str, int is_subsys) /* match token */ if (libcfs_debug_token2mask(&t, str, n, is_subsys) != 0) return -EINVAL; - + matched = 1; if (op == '-') m &= ~t; else m |= t; - + str += n; } @@ -471,10 +471,10 @@ unsigned int libcfs_console_ratelimit = 1; #else /* !HAVE_CATAMOUNT_DATA_H */ #ifdef HAVE_NETDB_H #include -#endif /* HAVE_CATAMOUNT_DATA_H */ +#endif /* HAVE_NETDB_H */ struct utsname *tmp_utsname; static char source_nid[sizeof(tmp_utsname->nodename)]; -#endif /* __KERNEL__ */ +#endif /* HAVE_CATAMOUNT_DATA_H */ static int source_pid; int smp_processor_id = 1; -- 1.8.3.1