#define CFDISK_DEBUG_MENU (1 << 3)
#define CFDISK_DEBUG_MISC (1 << 4)
#define CFDISK_DEBUG_TABLE (1 << 5)
-#define CFDISK_DEBUG_ALL 0xFFFF
#define DBG(m, x) __UL_DBG(cfdisk, CFDISK_DEBUG_, m, x)
#define FDISKPROG_DEBUG_MENU (1 << 3)
#define FDISKPROG_DEBUG_MISC (1 << 4)
#define FDISKPROG_DEBUG_ASK (1 << 5)
-#define FDISKPROG_DEBUG_ALL 0xFFFF
extern int pwipemode;
extern struct fdisk_table *original_layout;
#define SFDISKPROG_DEBUG_PARSE (1 << 2)
#define SFDISKPROG_DEBUG_MISC (1 << 3)
#define SFDISKPROG_DEBUG_ASK (1 << 4)
-#define SFDISKPROG_DEBUG_ALL 0xFFFF
#define DBG(m, x) __UL_DBG(sfdisk, SFDISKPROG_DEBUG_, m, x)
#define ON_DBG(m, x) __UL_DBG_CALL(sfdisk, SFDISKPROG_DEBUG_, m, x)
#define UL_DEBUG_MASK(m) m ## _debug_mask
#define UL_DEBUG_DEFINE_MASK(m) int UL_DEBUG_MASK(m)
#define UL_DEBUG_DECLARE_MASK(m) extern UL_DEBUG_DEFINE_MASK(m)
+#define UL_DEBUG_ALL 0xFFFFFF
/*
- * Internal mask flags (above 0xffffff)
+ * Internal mask flags (above UL_DEBUG_ALL)
*/
#define __UL_DEBUG_FL_NOADDR (1 << 24) /* Don't print object address */
#define TERMCOLORS_DEBUG_INIT (1 << 1)
#define TERMCOLORS_DEBUG_CONF (1 << 2)
#define TERMCOLORS_DEBUG_SCHEME (1 << 3)
-#define TERMCOLORS_DEBUG_ALL 0xFFFF
#define DBG(m, x) __UL_DBG(termcolors, TERMCOLORS_DEBUG_, m, x)
#define ON_DBG(m, x) __UL_DBG_CALL(termcolors, TERMCOLORS_DEBUG_, m, x)
}
}
/* nothing else we can do by OR-ing the mask */
- if (res == 0xffff)
+ if (res == UL_DEBUG_ALL)
break;
}
free(msbuf);
} else if (ptr && strcmp(ptr, "all") == 0)
- res = 0xffff;
+ res = UL_DEBUG_ALL;
return res;
}
#define ULNETADDRQ_DEBUG_LIST (1 << 3)
#define ULNETADDRQ_DEBUG_BEST (1 << 4)
-#define ULNETADDRQ_DEBUG_ALL 0x1F
-
static UL_DEBUG_DEFINE_MASK(netaddrq);
UL_DEBUG_DEFINE_MASKNAMES(netaddrq) =
{
- { "all", ULNETADDRQ_DEBUG_ALL, "complete address processing" },
+ { "all", UL_DEBUG_ALL, "complete address processing" },
{ "help", ULNETADDRQ_DEBUG_HELP, "this help" },
{ "addrq", ULNETADDRQ_DEBUG_ADDRQ, "address rating" },
{ "list", ULNETADDRQ_DEBUG_LIST, "list processing" },
#define ULNETLINK_DEBUG_NLMSG (1 << 2)
#define ULNETLINK_DEBUG_ADDR (1 << 3)
-#define ULNETLINK_DEBUG_ALL 0x0F
-
static UL_DEBUG_DEFINE_MASK(netlink);
UL_DEBUG_DEFINE_MASKNAMES(netlink) =
{
- { "all", ULNETLINK_DEBUG_ALL, "complete netlink debugging" },
+ { "all", UL_DEBUG_ALL, "complete netlink debugging" },
{ "help", ULNETLINK_DEBUG_HELP, "this help" },
{ "nlmsg", ULNETLINK_DEBUG_NLMSG, "netlink message debugging" },
{ "addr", ULNETLINK_DEBUG_ADDR, "netlink address processing" },
#define ULPTY_DEBUG_SIG (1 << 3)
#define ULPTY_DEBUG_IO (1 << 4)
#define ULPTY_DEBUG_DONE (1 << 5)
-#define ULPTY_DEBUG_ALL 0xFFFF
#define DBG(m, x) __UL_DBG(ulpty, ULPTY_DEBUG_, m, x)
#define DBG_OBJ(m, h, x) __UL_DBG_OBJ(ulpty, ULPTY_DEBUG_, m, h, x)
#define BLKID_DEBUG_SAVE (1 << 11)
#define BLKID_DEBUG_TAG (1 << 12)
#define BLKID_DEBUG_BUFFER (1 << 13)
-#define BLKID_DEBUG_ALL 0xFFFF /* (1 << 16) aka FFFF is expected by API */
UL_DEBUG_DECLARE_MASK(libblkid);
#define DBG(m, x) __UL_DBG(libblkid, BLKID_DEBUG_, m, x)
blkid_cache cache = NULL;
int ret;
- blkid_init_debug(BLKID_DEBUG_ALL);
+ blkid_init_debug(UL_DEBUG_ALL);
if ((argc > 2)) {
fprintf(stderr, "Usage: %s [filename] \n", argv[0]);
struct blkid_config *conf;
char *filename = NULL;
- blkid_init_debug(BLKID_DEBUG_ALL);
+ blkid_init_debug(UL_DEBUG_ALL);
if (argc == 2)
filename = argv[1];
blkid_cache cache = NULL;
int ret;
- blkid_init_debug(BLKID_DEBUG_ALL);
+ blkid_init_debug(UL_DEBUG_ALL);
if (argc != 1) {
fprintf(stderr, "Usage: %s\n"
"Probe all devices and exit\n", argv[0]);
dev_t devno, disk_devno;
const char *errmsg = "Couldn't parse %s: %s\n";
- blkid_init_debug(BLKID_DEBUG_ALL);
+ blkid_init_debug(UL_DEBUG_ALL);
if ((argc != 2) && (argc != 3)) {
fprintf(stderr, "Usage:\t%s device_number\n\t%s major minor\n"
"Resolve a device number to a device name\n",
UL_DEBUG_DEFINE_MASK(libblkid);
UL_DEBUG_DEFINE_MASKNAMES(libblkid) =
{
- { "all", BLKID_DEBUG_ALL, "info about all subsystems" },
+ { "all", UL_DEBUG_ALL, "info about all subsystems" },
{ "cache", BLKID_DEBUG_CACHE, "blkid tags cache" },
{ "config", BLKID_DEBUG_CONFIG, "config file utils" },
{ "dev", BLKID_DEBUG_DEV, "device utils" },
/**
* blkid_init_debug:
- * @mask: debug mask (0xffff to enable full debugging)
+ * @mask: debug mask (UL_DEBUG_ALL to enable full debugging)
*
* If the @mask is not specified then this function reads
* LIBBLKID_DEBUG environment variable to get the mask.
blkid_cache cache = NULL;
int ret;
- blkid_init_debug(BLKID_DEBUG_ALL);
+ blkid_init_debug(UL_DEBUG_ALL);
if (argc > 2) {
fprintf(stderr, "Usage: %s [filename]\n"
"Test parsing of the cache (filename)\n", argv[0]);
char *value;
blkid_cache cache;
- blkid_init_debug(BLKID_DEBUG_ALL);
+ blkid_init_debug(UL_DEBUG_ALL);
if (argc != 2 && argc != 3) {
fprintf(stderr, "Usage:\t%s tagname=value\n"
"\t%s tagname devname\n"
blkid_cache cache = NULL;
int ret;
- blkid_init_debug(BLKID_DEBUG_ALL);
+ blkid_init_debug(UL_DEBUG_ALL);
if (argc != 2) {
fprintf(stderr, "Usage: %s [filename]\n"
"Test loading/saving a cache (filename)\n", argv[0]);
#define LIBFDISK_DEBUG_WIPE (1 << 10)
#define LIBFDISK_DEBUG_ITEM (1 << 11)
#define LIBFDISK_DEBUG_GPT (1 << 12)
-#define LIBFDISK_DEBUG_ALL 0xFFFF
UL_DEBUG_DECLARE_MASK(libfdisk);
#define DBG(m, x) __UL_DBG(libfdisk, LIBFDISK_DEBUG_, m, x)
UL_DEBUG_DEFINE_MASK(libfdisk);
UL_DEBUG_DEFINE_MASKNAMES(libfdisk) =
{
- { "all", LIBFDISK_DEBUG_ALL, "info about all subsystems" },
+ { "all", UL_DEBUG_ALL, "info about all subsystems" },
{ "ask", LIBFDISK_DEBUG_ASK, "fdisk dialogs" },
{ "help", LIBFDISK_DEBUG_HELP, "this help" },
{ "cxt", LIBFDISK_DEBUG_CXT, "library context (handler)" },
/**
* fdisk_init_debug:
- * @mask: debug mask (0xffff to enable full debugging)
+ * @mask: debug mask (UL_DEBUG_ALL to enable full debugging)
*
* If the @mask is not specified then this function reads
* LIBFDISK_DEBUG environment variable to get the mask.
UL_DEBUG_DEFINE_MASK(libmount);
UL_DEBUG_DEFINE_MASKNAMES(libmount) =
{
- { "all", MNT_DEBUG_ALL, "info about all subsystems" },
+ { "all", UL_DEBUG_ALL, "info about all subsystems" },
{ "cache", MNT_DEBUG_CACHE, "paths and tags cache" },
{ "cxt", MNT_DEBUG_CXT, "library context (handler)" },
{ "diff", MNT_DEBUG_DIFF, "mountinfo changes tracking" },
/**
* mnt_init_debug:
- * @mask: debug mask (0xffff to enable full debugging)
+ * @mask: debug mask (UL_DEBUG_ALL to enable full debugging)
*
* If the @mask is not specified, then this function reads
* the LIBMOUNT_DEBUG environment variable to get the mask.
#define MNT_DEBUG_OPTLIST (1 << 16)
#define MNT_DEBUG_STATMNT (1 << 17)
-#define MNT_DEBUG_ALL 0xFFFFFF
-
UL_DEBUG_DECLARE_MASK(libmount);
#define DBG(m, x) __UL_DBG(libmount, MNT_DEBUG_, m, x)
#define DBG_OBJ(m, h, x) __UL_DBG_OBJ(libmount, MNT_DEBUG_, m, h, x)
UL_DEBUG_DEFINE_MASK(libsmartcols);
UL_DEBUG_DEFINE_MASKNAMES(libsmartcols) =
{
- { "all", SCOLS_DEBUG_ALL, "info about all subsystems" },
+ { "all", UL_DEBUG_ALL, "info about all subsystems" },
{ "buff", SCOLS_DEBUG_BUFF, "output buffer utils" },
{ "cell", SCOLS_DEBUG_CELL, "table cell utils" },
{ "col", SCOLS_DEBUG_COL, "cols utils" },
/**
* scols_init_debug:
- * @mask: debug mask (0xffff to enable full debugging)
+ * @mask: debug mask (UL_DEBUG_ALL to enable full debugging)
*
* If the @mask is not specified, then this function reads
* the LIBSMARTCOLS_DEBUG environment variable to get the mask.
#define SCOLS_DEBUG_GROUP (1 << 7)
#define SCOLS_DEBUG_FLTR (1 << 8)
#define SCOLS_DEBUG_FPARAM (1 << 9)
-#define SCOLS_DEBUG_ALL 0xFFFF
UL_DEBUG_DECLARE_MASK(libsmartcols);
#define DBG(m, x) __UL_DBG(libsmartcols, SCOLS_DEBUG_, m, x)
#define SU_DEBUG_MISC (1 << 6)
#define SU_DEBUG_SIG (1 << 7)
#define SU_DEBUG_PTY (1 << 8)
-#define SU_DEBUG_ALL 0xFFFF
#define DBG(m, x) __UL_DBG(su, SU_DEBUG_, m, x)
#define ON_DBG(m, x) __UL_DBG_CALL(su, SU_DEBUG_, m, x)
#define LSFD_DEBUG_INIT (1 << 1)
#define LSFD_DEBUG_ENDPOINTS (1 << 2)
-#define LSFD_DEBUG_ALL 0xFFFF
#define DBG(m, x) __UL_DBG(lsfd, LSFD_DEBUG_, m, x)
#define LSBLK_DEBUG_DEV (1 << 3)
#define LSBLK_DEBUG_TREE (1 << 4)
#define LSBLK_DEBUG_DEP (1 << 5)
-#define LSBLK_DEBUG_ALL 0xFFFF
UL_DEBUG_DECLARE_MASK(lsblk);
#define DBG(m, x) __UL_DBG(lsblk, LSBLK_DEBUG_, m, x)
#define WHEREIS_DEBUG_SEARCH (1 << 5)
#define WHEREIS_DEBUG_STATIC (1 << 6)
#define WHEREIS_DEBUG_LIST (1 << 7)
-#define WHEREIS_DEBUG_ALL 0xFFFF
#define DBG(m, x) __UL_DBG(whereis, WHEREIS_DEBUG_, m, x)
#define DBG_OBJ(m, h, x) __UL_DBG_OBJ(whereis, WHEREIS_DEBUG_, m, h, x)
#define HWCLOCK_DEBUG_INIT (1 << 0)
#define HWCLOCK_DEBUG_RANDOM_SLEEP (1 << 1)
#define HWCLOCK_DEBUG_DELTA_VS_TARGET (1 << 2)
-#define HWCLOCK_DEBUG_ALL 0xFFFF
UL_DEBUG_DECLARE_MASK(hwclock);
#define DBG(m, x) __UL_DBG(hwclock, HWCLOCK_DEBUG_, m, x)
#define LSCPU_DEBUG_TYPE (1 << 4)
#define LSCPU_DEBUG_CPU (1 << 5)
#define LSCPU_DEBUG_VIRT (1 << 6)
-#define LSBLK_DEBUG_ALL 0xFFFF
UL_DEBUG_DECLARE_MASK(lscpu);
#define DBG(m, x) __UL_DBG(lscpu, LSCPU_DEBUG_, m, x)
#define LSNS_DEBUG_PROC (1 << 2)
#define LSNS_DEBUG_NS (1 << 3)
#define LSNS_DEBUG_FILTER (1 << 4)
-#define LSNS_DEBUG_ALL 0xFFFF
#define LSNS_NETNS_UNUSABLE -2
#define SCRIPTREPLAY_DEBUG_TIMING (1 << 2)
#define SCRIPTREPLAY_DEBUG_LOG (1 << 3)
#define SCRIPTREPLAY_DEBUG_MISC (1 << 4)
-#define SCRIPTREPLAY_DEBUG_ALL 0xFFFF
UL_DEBUG_DECLARE_MASK(scriptreplay);
#define SCRIPT_DEBUG_IO (1 << 3)
#define SCRIPT_DEBUG_SIGNAL (1 << 4)
#define SCRIPT_DEBUG_MISC (1 << 5)
-#define SCRIPT_DEBUG_ALL 0xFFFF
#define DBG(m, x) __UL_DBG(script, SCRIPT_DEBUG_, m, x)
#define ON_DBG(m, x) __UL_DBG_CALL(script, SCRIPT_DEBUG_, m, x)