little fix

This commit is contained in:
TXuian
2024-12-23 22:40:54 +08:00
parent 3d43cb9644
commit 7639937678
22 changed files with 1091 additions and 26 deletions
+14 -1
View File
@@ -35,6 +35,8 @@ Modification:
#define OUTPUT_LEVLE_DEBUG 1
#define OUTPUT_LEVLE_ERROR 2
#define OUTPUT_LEVEL_TEST 3
#define OUTPUT_LEVLE OUTPUT_LEVLE_DEBUG
// #define OUTPUT_LEVLE OUTPUT_LEVLE_LOG
@@ -56,10 +58,21 @@ Modification:
#define DEBUG_PRINTF(f, args...)
#endif
#define DEBUG(f, args...) \
#if (OUTPUT_LEVLE >= OUTPUT_LEVLE_TEST)
#define RECORD_PRINTF(f, args...) \
KPrintf(f, ##args)
#else
#define RECORD_PRINTF(f, args...)
#endif
#define DEBUG(f, args...) \
DEBUG_PRINTF("DEBUG: [%s] ", __func__); \
DEBUG_PRINTF(f, ##args)
#define RECORD(f, args...) \
RECORD_PRINTF("DEBUG: [%s] ", __func__); \
RECORD_PRINTF(f, ##args)
#define ERROR(f, args...) \
KPrintf("ERROR: [%s %d] ", __func__, __LINE__); \
KPrintf(f, ##args)