From: Peter Schiffer Date: Tue, 2 Apr 2013 08:56:52 +0000 (+0200) Subject: Added new logging to the tools X-Git-Tag: v0.41~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a5c518459571067c71aba8bfde36c3b5a38d597;p=thirdparty%2Flibcgroup.git Added new logging to the tools Tools should use cgroup_log now. Signed-off-by: Peter Schiffer Acked-by: Ivana Hutarova Varekova --- diff --git a/src/tools/tools-common.h b/src/tools/tools-common.h index 23bd35cd..e05465f7 100644 --- a/src/tools/tools-common.h +++ b/src/tools/tools-common.h @@ -22,11 +22,10 @@ #include #include -#ifdef CGROUP_DEBUG -#define cgroup_dbg(x...) printf(x) -#else -#define cgroup_dbg(x...) do {} while (0) -#endif +#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) +#define cgroup_dbg(x...) cgroup_log(CGROUP_LOG_DEBUG, x) /** * Auxiliary specifier of group, used to store parsed command line options.