debug_ui.h (50→10 lines): GUI_ERROR/WARN/INFO/DEBUG now delegate to DEBUG_ERROR/WARN/INFO/DEBUG(DEBUG_CATEGORY_DEBUG, ...) from debug_config.h Eliminates dual logging output, dual log file configuration. Removed guiDebugFile() — debug_enable_file_output() already handles it. Removed debug_ui.h include from utun_node.cpp (unused).
11 lines
392 B
C
11 lines
392 B
C
#pragma once
|
|
|
|
extern "C" {
|
|
#include "../../lib/debug_config.h"
|
|
}
|
|
|
|
#define GUI_ERROR(fmt, ...) DEBUG_ERROR(DEBUG_CATEGORY_DEBUG, fmt, ##__VA_ARGS__)
|
|
#define GUI_WARN(fmt, ...) DEBUG_WARN(DEBUG_CATEGORY_DEBUG, fmt, ##__VA_ARGS__)
|
|
#define GUI_INFO(fmt, ...) DEBUG_INFO(DEBUG_CATEGORY_DEBUG, fmt, ##__VA_ARGS__)
|
|
#define GUI_DEBUG(fmt, ...) DEBUG_DEBUG(DEBUG_CATEGORY_DEBUG, fmt, ##__VA_ARGS__)
|