From: Karel Zak Date: Thu, 8 Apr 2010 12:59:03 +0000 (+0200) Subject: libmount: export mnt_init_debug() X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afa03b9d9ba3e4fa658b01598a0146a0215e7920;p=util-linux libmount: export mnt_init_debug() Signed-off-by: Karel Zak --- diff --git a/shlibs/mount/src/init.c b/shlibs/mount/src/init.c index 33da47b5..544361bc 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 7d13e706..eeddc812 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 358d7b73..32740dce 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 4b4e5b5b..c9c96dcc 100644 --- a/shlibs/mount/src/mountP.h +++ b/shlibs/mount/src/mountP.h @@ -41,11 +41,9 @@ #ifdef CONFIG_LIBMOUNT_DEBUG #include 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