summaryrefslogtreecommitdiffstats
path: root/cgrulesengd.h
diff options
context:
space:
mode:
authorDhaval Giani <dhaval@linux.vnet.ibm.com>2009-02-25 13:31:29 +0000
committerDhaval Giani <dhaval@linux.vnet.ibm.com>2009-02-25 13:31:29 +0000
commit40e6bd08857a65ce955c42dcf24d1a87e0318d38 (patch)
treede312cd15bed964278959dbbb6527b3204ea96ed /cgrulesengd.h
parent85cc276a3fed46c9064652ddf08500b932ee3f94 (diff)
downloadlibcg-40e6bd08857a65ce955c42dcf24d1a87e0318d38.tar.gz
libcg-40e6bd08857a65ce955c42dcf24d1a87e0318d38.tar.xz
libcg-40e6bd08857a65ce955c42dcf24d1a87e0318d38.zip
libcgroup: Move dbg() to libcgroup-internal.h
From: Jan Safranek <jsafrane@redhat.com> I think dbg() should be in internal header file and not in the public one. The tools get their own definition of dbg() so they don't need to include library private header. dbg() is defined on three places now, it will make more sense when the sources are distributed to different directories. Signed-off-by: Jan Safranek <jsafrane@redhat.com> Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@342 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'cgrulesengd.h')
-rw-r--r--cgrulesengd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgrulesengd.h b/cgrulesengd.h
index f49f79f..1dc5bda 100644
--- a/cgrulesengd.h
+++ b/cgrulesengd.h
@@ -32,9 +32,9 @@ __BEGIN_DECLS
/* A simple macro for printing messages only when CGROUP_DEBUG is defined. */
#ifdef CGROUP_DEBUG
- #define fdbg(a, b...) fprintf(a, b)
+ #define dbg(a...) printf(a)
#else
- #define fdbg(a, b...) do {} while(0)
+ #define dbg(a...) do {} while (0)
#endif /* CGROUP_DEBUG */
/* The following ten macros are all for the Netlink code. */