summaryrefslogtreecommitdiffstats
path: root/libmount/src/init.c
diff options
context:
space:
mode:
authorKarel Zak2018-01-17 13:58:29 +0100
committerKarel Zak2018-01-17 13:58:29 +0100
commita15dca2f6d0693546138a6a727f019dd8019dee8 (patch)
tree4ca90e704fea0743180867f7ab7f0592672f8562 /libmount/src/init.c
parenthwclock: rename --debug option to --verbose (diff)
downloadkernel-qcow2-util-linux-a15dca2f6d0693546138a6a727f019dd8019dee8.tar.gz
kernel-qcow2-util-linux-a15dca2f6d0693546138a6a727f019dd8019dee8.tar.xz
kernel-qcow2-util-linux-a15dca2f6d0693546138a6a727f019dd8019dee8.zip
include/debug: introduce __UL_INIT_DEBUG_FROM_STRING()
Let's make it possible to use debug.h without environment variables. Suggested-by: J William Piggott <elseifthen@gmx.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/init.c')
-rw-r--r--libmount/src/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/init.c b/libmount/src/init.c
index c927fb7f6..29be282d5 100644
--- a/libmount/src/init.c
+++ b/libmount/src/init.c
@@ -51,7 +51,7 @@ void mnt_init_debug(int mask)
if (libmount_debug_mask)
return;
- __UL_INIT_DEBUG(libmount, MNT_DEBUG_, mask, LIBMOUNT_DEBUG);
+ __UL_INIT_DEBUG_FROM_ENV(libmount, MNT_DEBUG_, mask, LIBMOUNT_DEBUG);
if (libmount_debug_mask != MNT_DEBUG_INIT
&& libmount_debug_mask != (MNT_DEBUG_HELP|MNT_DEBUG_INIT)) {