summaryrefslogblamecommitdiffstats
path: root/libfdisk/src/init.c
blob: 1c5008073df9711d3dd415f435b1e374a02a66a6 (plain) (tree)
1
2
3
4
5
6
7
8
9


                   
                               
                                     
 
                                   
                                  
                                   
                                             

                                       

                                             
                                        


                                  











                                                                     
                                                                      
 

#include "fdiskP.h"

UL_DEBUG_DEFINE_MASK(libfdisk);
UL_DEBUG_DEFINE_MASKNAMES(libfdisk) =
{
	{ "all", FDISK_DEBUG_ALL },
	{ "ask", FDISK_DEBUG_ASK},
	{ "cxt", FDISK_DEBUG_CXT },
	{ "frontend", FDISK_DEBUG_FRONTEND },
	{ "init", FDISK_DEBUG_INIT },
	{ "label", FDISK_DEBUG_LABEL },
	{ "part", FDISK_DEBUG_PART },
	{ "parttype", FDISK_DEBUG_PARTTYPE },
	{ "script", FDISK_DEBUG_SCRIPT},
	{ "tab", FDISK_DEBUG_TAB},
	{ NULL, 0 }
};
/**
 * fdisk_init_debug:
 * @mask: debug mask (0xffff to enable full debuging)
 *
 * If the @mask is not specified then this function reads
 * FDISK_DEBUG environment variable to get the mask.
 *
 * Already initialized debugging stuff cannot be changed. It does not
 * have effect to call this function twice.
 */
void fdisk_init_debug(int mask)
{
	__UL_INIT_DEBUG(libfdisk, FDISK_DEBUG_, mask, LIBFDISK_DEBUG);
}