Tools should use cgroup_log now.

Signed-off-by: Peter Schiffer <pschi...@redhat.com>
---
 src/tools/tools-common.h |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/tools/tools-common.h b/src/tools/tools-common.h
index 23bd35c..e05465f 100644
--- a/src/tools/tools-common.h
+++ b/src/tools/tools-common.h
@@ -22,11 +22,10 @@
 #include <libcgroup.h>
 #include <libcgroup-internal.h>
 
-#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.


------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to