little fix
This commit is contained in:
@@ -35,7 +35,7 @@ Modification:
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#define MAX_BUDDY_ORDER (14)
|
||||
#define MAX_BUDDY_ORDER (18)
|
||||
|
||||
#define FREE_LIST_INDEX(order) \
|
||||
(1 << order)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user