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.


------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to