summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2010-04-08 14:59:03 +0200
committerKarel Zak2010-06-03 15:20:12 +0200
commitafa03b9d9ba3e4fa658b01598a0146a0215e7920 (patch)
treed8e7b0286ae355e04d0531989b8d2d39cfa55fb8
parentlib: tt.c: don't print header for empty table (diff)
downloadkernel-qcow2-util-linux-afa03b9d9ba3e4fa658b01598a0146a0215e7920.tar.gz
kernel-qcow2-util-linux-afa03b9d9ba3e4fa658b01598a0146a0215e7920.tar.xz
kernel-qcow2-util-linux-afa03b9d9ba3e4fa658b01598a0146a0215e7920.zip
libmount: export mnt_init_debug()
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--shlibs/mount/src/init.c2
-rw-r--r--shlibs/mount/src/mount.h.in2
-rw-r--r--shlibs/mount/src/mount.sym1
-rw-r--r--shlibs/mount/src/mountP.h2
4 files changed, 3 insertions, 4 deletions
diff --git a/shlibs/mount/src/init.c b/shlibs/mount/src/init.c
index 33da47b5c..544361bc7 100644
--- a/shlibs/mount/src/init.c
+++ b/shlibs/mount/src/init.c
@@ -9,7 +9,6 @@
#include "mountP.h"
-#ifdef CONFIG_LIBMOUNT_DEBUG
int libmount_debug_mask;
void mnt_init_debug(int mask)
@@ -28,4 +27,3 @@ void mnt_init_debug(int mask)
libmount_debug_mask);
libmount_debug_mask |= DEBUG_INIT;
}
-#endif
diff --git a/shlibs/mount/src/mount.h.in b/shlibs/mount/src/mount.h.in
index 7d13e7061..eeddc812b 100644
--- a/shlibs/mount/src/mount.h.in
+++ b/shlibs/mount/src/mount.h.in
@@ -102,6 +102,8 @@ typedef struct _mnt_fs mnt_fs;
*/
typedef struct _mnt_tab mnt_tab;
+/* init.c */
+extern void mnt_init_debug(int mask);
/* version.c */
extern int mnt_parse_version_string(const char *ver_string);
diff --git a/shlibs/mount/src/mount.sym b/shlibs/mount/src/mount.sym
index 358d7b73e..32740dce7 100644
--- a/shlibs/mount/src/mount.sym
+++ b/shlibs/mount/src/mount.sym
@@ -129,6 +129,7 @@ global:
mnt_tab_strerror;
mnt_tab_update_file;
mnt_unlock_file;
+ mnt_init_debug;
local:
*;
};
diff --git a/shlibs/mount/src/mountP.h b/shlibs/mount/src/mountP.h
index 4b4e5b5b5..c9c96dcc7 100644
--- a/shlibs/mount/src/mountP.h
+++ b/shlibs/mount/src/mountP.h
@@ -41,11 +41,9 @@
#ifdef CONFIG_LIBMOUNT_DEBUG
#include <stdio.h>
extern int libmount_debug_mask;
-extern void mnt_init_debug(int mask);
#define DBG(m,x) if ((m) & libmount_debug_mask) x
#else
#define DBG(m,x)
-#define mnt_init_debug(x)
#endif
#ifdef TEST_PROGRAM