diff options
author | Manuel Bentele | 2020-10-12 11:45:32 +0200 |
---|---|---|
committer | Manuel Bentele | 2020-10-12 11:45:32 +0200 |
commit | eb4fefc56bb55b7000fd179cf397af83abb062df (patch) | |
tree | 5394070b4dab485827aac1803904e4ae209da58b /utils | |
parent | Print version string in kernel log (diff) | |
download | xloop-eb4fefc56bb55b7000fd179cf397af83abb062df.tar.gz xloop-eb4fefc56bb55b7000fd179cf397af83abb062df.tar.xz xloop-eb4fefc56bb55b7000fd179cf397af83abb062df.zip |
Added debug support for xlosetup and documented debugging in README
Diffstat (limited to 'utils')
-rw-r--r-- | utils/lib/loopdev.c | 14 | ||||
-rw-r--r-- | utils/sys-utils/xlosetup.8 | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/utils/lib/loopdev.c b/utils/lib/loopdev.c index d377371..be4e486 100644 --- a/utils/lib/loopdev.c +++ b/utils/lib/loopdev.c @@ -48,13 +48,13 @@ static UL_DEBUG_DEFINE_MASK(loopdev); UL_DEBUG_DEFINE_MASKNAMES(loopdev) = UL_DEBUG_EMPTY_MASKNAMES; -#define LOOPDEV_DEBUG_INIT (1 << 1) -#define LOOPDEV_DEBUG_CXT (1 << 2) -#define LOOPDEV_DEBUG_ITER (1 << 3) -#define LOOPDEV_DEBUG_SETUP (1 << 4) +#define XLOOPDEV_DEBUG_INIT (1 << 1) +#define XLOOPDEV_DEBUG_CXT (1 << 2) +#define XLOOPDEV_DEBUG_ITER (1 << 3) +#define XLOOPDEV_DEBUG_SETUP (1 << 4) -#define DBG(m, x) __UL_DBG(loopdev, LOOPDEV_DEBUG_, m, x) -#define ON_DBG(m, x) __UL_DBG_CALL(loopdev, LOOPDEV_DEBUG_, m, x) +#define DBG(m, x) __UL_DBG(loopdev, XLOOPDEV_DEBUG_, m, x) +#define ON_DBG(m, x) __UL_DBG_CALL(loopdev, XLOOPDEV_DEBUG_, m, x) #define UL_DEBUG_CURRENT_MASK UL_DEBUG_MASK(loopdev) #include "debugobj.h" @@ -63,7 +63,7 @@ static void loopdev_init_debug(void) { if (loopdev_debug_mask) return; - __UL_INIT_DEBUG_FROM_ENV(loopdev, LOOPDEV_DEBUG_, 0, LOOPDEV_DEBUG); + __UL_INIT_DEBUG_FROM_ENV(loopdev, XLOOPDEV_DEBUG_, 0, XLOOPDEV_DEBUG); } /* diff --git a/utils/sys-utils/xlosetup.8 b/utils/sys-utils/xlosetup.8 index 7dd2fa0..4e063e6 100644 --- a/utils/sys-utils/xlosetup.8 +++ b/utils/sys-utils/xlosetup.8 @@ -184,7 +184,7 @@ is not configured and 2 if an error occurred which prevented determining the status of the device. .SH ENVIRONMENT -.IP LOOPDEV_DEBUG=all +.IP XLOOPDEV_DEBUG=all enables debug output. .SH FILES |