OpenWRT libloragw problem on enabling DEBUG messages

Hi All,

I am new on openWRT. I have an Omega2+ (mipsel_24kc_musl) based board which is openwrt 18.06 custom compilation loaded. I enabled libloragw-utils and related libs on make menuconfig.

I would like to enable DEBUG messages on "/home/ahmet/OpenWRT/openwrt_19/openwrt/build_dir/target-mipsel_24kc_musl/lora_gateway-5.0.1/libloragw/src/loragw_reg.c" like below part as making DEBUG_REG=1 in config.h and library.cfg

a part from loragw_reg.c

#if DEBUG_REG == 1
    #define DEBUG_MSG(str)              fprintf(stderr, str)
    #define DEBUG_PRINTF(fmt, args...)  fprintf(stderr,"%s:%d: "fmt, __FUNCTION__, __LINE__, args)
    #define CHECK_NULL(a)               if(a==NULL){fprintf(stderr,"%s:%d: ERROR: NULL POINTER AS ARGUMENT\n", __FUNCTION__, __LINE__);return LGW_REG_ERROR;}
#else
    #define DEBUG_MSG(str)
    #define DEBUG_PRINTF(fmt, args...)
    #define CHECK_NULL(a)               if(a==NULL){return LGW_REG_ERROR;}
#endif

library.cfg ;

### Debug options ###
# Set the DEBUG_* to 1 to activate debug mode in individual modules.
# Warning: that makes the module *very verbose*, do not use for production

DEBUG_AUX= 1
DEBUG_SPI= 1
DEBUG_REG= 1
DEBUG_HAL= 1
DEBUG_LBT= 1
DEBUG_GPS= 1

I am working on "openwrt/build_dir/target-mipsel_24kc_musl/lora_gateway-5.0.1" while compiling.
after running make, I see the messages below:

-- Build with debug AUX: OFF
-- Build with debug SPI: OFF
-- Build with debug REG: OFF
-- Build with debug HAL: OFF
-- Build with debug GPIO: OFF
-- Build with debug LBT: OFF
-- Build with debug GPS: OFF
-- Build with SPI_DEV_PATH: /dev/spidev0.1
-- Build with SPI_SPEED: 8000000
-- Configuring done
-- Generating done

even I made all debug parameters 1, I see same message as OFF. and I cannot change SPI_DEV_PATH also...

Is there anyone who know about this issue?

Thanks in advance...