Debug log messages are now automatically compiled in libcgroup unless
explicitly disabled with ./configure --disable-debug.
Please note that the messages still must be enabled in runtime by setting
appropriate log level, e.g. export CGROUP_LOGLEVEL=DEBUG.
Changelog:
- removed --disable-debug option of configure script, removing debug
messages we would save 'amazing' 4kB, which is IMO not worth it.
Signed-off-by: Peter Schiffer <pschiffe@redhat.com>
Acked-by: Ivana Hutarova Varekova <varekova@redhat.com>
AM_CONDITIONAL([WITH_BINDINGS], [test x$with_bindings = xtrue])
# Process command line options
-AC_ARG_ENABLE([debug],
- [AC_HELP_STRING([--enable-debug],
- [enable extra debugging output [default=no]])],
- [
- if test "x$enableval" = xyes; then
- AC_DEFINE([CGROUP_DEBUG], [],
- [Define to enable extra debugging output.])
- fi
- ]
- [])
-
AC_ARG_ENABLE([tools],
[AC_HELP_STRING([--enable-tools],
[compile libcgroup tools [default=yes]])],
#define cgroup_err(x...) cgroup_log(CGROUP_LOG_ERROR, x)
#define cgroup_warn(x...) cgroup_log(CGROUP_LOG_WARNING, x)
#define cgroup_info(x...) cgroup_log(CGROUP_LOG_INFO, x)
-
-#ifdef CGROUP_DEBUG
#define cgroup_dbg(x...) cgroup_log(CGROUP_LOG_DEBUG, x)
-#else
-#define cgroup_dbg(x...) do {} while (0)
-#endif
#define CGROUP_DEFAULT_LOGLEVEL CGROUP_LOG_ERROR