Skip to content
Snippets Groups Projects
Commit c3340096 authored by Yury Umanets's avatar Yury Umanets
Browse files

- LIBCFS_DEBUG is used as #ifdef and cannot be defined as 0 in disable case

parent a2a84db5
No related branches found
No related tags found
No related merge requests found
...@@ -78,9 +78,7 @@ AC_ARG_ENABLE([libcfs_assert], ...@@ -78,9 +78,7 @@ AC_ARG_ENABLE([libcfs_assert],
[disable libcfs LASSERT, LASSERTF]), [disable libcfs LASSERT, LASSERTF]),
[],[disable_libcfs_assert='no']) [],[disable_libcfs_assert='no'])
AC_MSG_RESULT([$disable_libcfs_assert]) AC_MSG_RESULT([$disable_libcfs_assert])
if test x$disable_libcfs_assert != xno; then if test x$disable_libcfs_assert = xno; then
AC_DEFINE(LIBCFS_DEBUG, 0, [disable libcfs LASSERT, LASSERTF])
else
AC_DEFINE(LIBCFS_DEBUG, 1, [enable libcfs LASSERT, LASSERTF]) AC_DEFINE(LIBCFS_DEBUG, 1, [enable libcfs LASSERT, LASSERTF])
fi fi
]) ])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment