Whamcloud - gitweb
- LIBCFS_DEBUG is used as #ifdef and cannot be defined as 0 in disable case
authoryury <yury>
Fri, 30 Mar 2007 13:32:23 +0000 (13:32 +0000)
committeryury <yury>
Fri, 30 Mar 2007 13:32:23 +0000 (13:32 +0000)
lnet/autoconf/lustre-lnet.m4

index 795d1c9..c569683 100644 (file)
@@ -78,9 +78,7 @@ AC_ARG_ENABLE([libcfs_assert],
                        [disable libcfs LASSERT, LASSERTF]),
        [],[disable_libcfs_assert='no'])
 AC_MSG_RESULT([$disable_libcfs_assert])
-if test x$disable_libcfs_assert != xno; then
-   AC_DEFINE(LIBCFS_DEBUG, 0, [disable libcfs LASSERT, LASSERTF])
-else
+if test x$disable_libcfs_assert = xno; then
    AC_DEFINE(LIBCFS_DEBUG, 1, [enable libcfs LASSERT, LASSERTF])
 fi
 ])