This commit is contained in:
jeka committed 2026-03-25 20:39:12 +03:00
1 parent adcebcc31b
commit e87f09cff8
3 files changed
+5 -1

No files matched your search

+1
View File
@@ -83,6 +83,7 @@ static debug_category_t get_category_by_name(const char* name) {
{"dump", DEBUG_CATEGORY_DUMP},
{"traffic", DEBUG_CATEGORY_TRAFFIC},
{"debug", DEBUG_CATEGORY_DEBUG},
{"general", DEBUG_CATEGORY_GENERAL},
{"all", DEBUG_CATEGORY_ALL},
{NULL, 0}
};
+2 -1
View File
@@ -54,7 +54,8 @@ typedef uint64_t debug_category_t;
#define DEBUG_CATEGORY_DUMP ((debug_category_t)1 << 15) // Packet dump/logging
#define DEBUG_CATEGORY_TRAFFIC ((debug_category_t)1 << 16) // Traffic flow (src/dst node IDs)
#define DEBUG_CATEGORY_DEBUG ((debug_category_t)1 << 17) // Current debugging
#define DEBUG_CATEGORY_COUNT 18 // Total number of categories
#define DEBUG_CATEGORY_GENERAL ((debug_category_t)1 << 18) // Messages for user (common log)
#define DEBUG_CATEGORY_COUNT 19 // Total number of categories
#define DEBUG_CATEGORY_ALL ((debug_category_t)0xFFFFFFFFUL)
/* Debug configuration structure */