util: make log_debug_hexdump only print hexdump if ENABLE_LOG_DEBUG

This commit is contained in:
Matthias Ringwald 2017-04-10 15:19:58 +02:00
parent b304e673c2
commit e950fa96e9

View File

@ -228,7 +228,7 @@ static void log_hexdump(int level, const void * data, int size){
#endif
void log_debug_hexdump(const void *data, int size){
#ifdef ENABLE_LOG_INFO
#ifdef ENABLE_LOG_DEBUG
log_hexdump(LOG_LEVEL_DEBUG, data, size);
#else
UNUSED(data);