From cedd8e5f6259ce8a552de97a2ed2987739daf5ad Mon Sep 17 00:00:00 2001 From: Ondrej Oprala Date: Wed, 12 Mar 2014 14:37:58 +0100 Subject: libmount: use macros from include/debug.h Signed-off-by: Ondrej Oprala --- libmount/src/mountP.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'libmount/src/mountP.h') diff --git a/libmount/src/mountP.h b/libmount/src/mountP.h index a580ae438..6b20f8ff0 100644 --- a/libmount/src/mountP.h +++ b/libmount/src/mountP.h @@ -20,6 +20,7 @@ #include "c.h" #include "list.h" +#include "debug.h" #include "libmount.h" /* features */ @@ -56,6 +57,9 @@ # include # include +#define DBG(m, x) do { __UL_DBG(libmount, MNT_DEBUG_, m, x); } while (0) +#define INIT_DBG(m) do { __UL_INIT_DEBUG(libmount, MNT_DEBUG_, m, LIBMOUNT_DEBUG); } while (0) + # define WARN_REFCOUNT(m, o, r) \ do { \ if ((MNT_DEBUG_ ## m) & libmount_debug_mask && r != 0) \ @@ -69,13 +73,6 @@ } \ } while (0) -# define DBG(m, x) do { \ - if ((MNT_DEBUG_ ## m) & libmount_debug_mask) { \ - fprintf(stderr, "%d: libmount: %8s: ", getpid(), # m); \ - x; \ - } \ - } while (0) - # define DBG_FLUSH do { \ if (libmount_debug_mask && \ libmount_debug_mask != MNT_DEBUG_INIT) \ -- cgit v1.2.3-55-g7522