openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/util-linux/2.33.2-r0/util-linux-2.33.2/libmount/src/init.c
void mnt_init_debug(int mask)
{
    if (libmount_debug_mask)
        return;

    __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))
    {
        const char* ver = NULL;
        const char **features = NULL, **p;

        mnt_get_library_version(&ver);
        mnt_get_library_features(&features);

        DBG(INIT, ul_debug("library debug mask: 0x%04x", libmount_debug_mask));
        DBG(INIT, ul_debug("library version: %s", ver));
        p = features;
        while (p && *p)
            DBG(INIT, ul_debug("    feature: %s", *p++));
    }

    ON_DBG(HELP, ul_debug_print_masks("LIBMOUNT_DEBUG",
                                      UL_DEBUG_MASKNAMES(libmount)));
}
/**
 * mnt_init_debug:
 * @mask: debug mask (0xffff to enable full debugging)
 *
 * If the @mask is not specified, then this function reads
 * the LIBMOUNT_DEBUG environment variable to get the mask.
 *
 * Already initialized debugging stuff cannot be changed. Calling
 * this function twice has no effect.
 */
@mask: debug mask (0xffff to enable full debugging)

If the @mask is not specified, then this function reads
the LIBMOUNT_DEBUG environment variable to get the mask.

Already initialized debugging stuff cannot be changed. Calling
this function twice has no effect.
@mask : debug mask ( 0xffff to enable full debugging ) If the @mask is not specified then this function reads the LIBMOUNT_DEBUG environment variable to get the mask . Already initialized debugging stuff cannot be changed . Calling this function twice has no effect .
void mnt_init_debug(int mask)
{
    if (libmount_debug_mask)
        return;
    __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))
    {
        const char* ver = NULL;
        const char **features = NULL, **p;
        mnt_get_library_version(&ver);
        mnt_get_library_features(&features);
        DBG(INIT, ul_debug("library debug mask: 0x%04x", libmount_debug_mask));
        DBG(INIT, ul_debug("library version: %s", ver));
        p = features;
        while (p && *p)
            DBG(INIT, ul_debug("    feature: %s", *p++));
    }
    ON_DBG(HELP, ul_debug_print_masks("LIBMOUNT_DEBUG",
                                      UL_DEBUG_MASKNAMES(libmount)));
}
void mnt_init_debug ( int mask ) { if ( libmount_debug_mask ) return ; __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 ) ) { const char * ver = NULL ; const char * * features = NULL , * * p ; mnt_get_library_version ( & ver ) ; mnt_get_library_features ( & features ) ; DBG ( INIT , ul_debug ( " " , libmount_debug_mask ) ) ; DBG ( INIT , ul_debug ( " " , ver ) ) ; p = features ; while ( p && * p ) DBG ( INIT , ul_debug ( " " , * p ++ ) ) ; } ON_DBG ( HELP , ul_debug_print_masks ( " " , UL_DEBUG_MASKNAMES ( libmount ) ) ) ; }
mnt_init_debug:
 @mask: debug mask (0xffff to enable full debugging)
mnt_init_debug : @mask : debug mask ( 0xffff to enable full debugging )