diff options
author | Karel Zak | 2018-01-17 13:58:29 +0100 |
---|---|---|
committer | Karel Zak | 2018-01-17 13:58:29 +0100 |
commit | a15dca2f6d0693546138a6a727f019dd8019dee8 (patch) | |
tree | 4ca90e704fea0743180867f7ab7f0592672f8562 /disk-utils/cfdisk.c | |
parent | hwclock: rename --debug option to --verbose (diff) | |
download | kernel-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 'disk-utils/cfdisk.c')
-rw-r--r-- | disk-utils/cfdisk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c index 286f88abb..806bff837 100644 --- a/disk-utils/cfdisk.c +++ b/disk-utils/cfdisk.c @@ -264,7 +264,7 @@ UL_DEBUG_DEFINE_MASKNAMES(cfdisk) = UL_DEBUG_EMPTY_MASKNAMES; static void cfdisk_init_debug(void) { - __UL_INIT_DEBUG(cfdisk, CFDISK_DEBUG_, 0, CFDISK_DEBUG); + __UL_INIT_DEBUG_FROM_ENV(cfdisk, CFDISK_DEBUG_, 0, CFDISK_DEBUG); } /* Initialize output columns -- we follow libfdisk fields (usually specific |