mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 22:33:48 -07:00
umm: redirect to Dbprintf
This commit is contained in:
parent
7850efefc8
commit
3e297eba40
3 changed files with 29 additions and 3 deletions
|
@ -124,8 +124,11 @@ THUMBSRC = start.c \
|
|||
BigBuf.c \
|
||||
ticks.c \
|
||||
clocks.c \
|
||||
hfsnoop.c
|
||||
|
||||
hfsnoop.c \
|
||||
umm_info.c \
|
||||
umm_integrity.c \
|
||||
umm_malloc.c \
|
||||
umm_poison.c
|
||||
|
||||
# These are to be compiled in ARM mode
|
||||
ARMSRC = fpgaloader.c \
|
||||
|
|
|
@ -50,4 +50,26 @@ void Dbhexdump(int len, uint8_t *d, bool bAsci);
|
|||
void print_result(const char *name, uint8_t *buf, size_t len);
|
||||
//void PrintToSendBuffer(void);
|
||||
|
||||
// Functions for umm_malloc
|
||||
// Alternatively, use https://github.com/rhempel/c-helper-macros/blob/develop/dbglog/dbglog.h
|
||||
#define DBGLOG_FORCE(...) {\
|
||||
Dbprintf (__VA_ARGS__); \
|
||||
}
|
||||
|
||||
#define DBGLOG_ERROR(...) {\
|
||||
if (DBGLEVEL >= DBG_ERROR) Dbprintf (__VA_ARGS__); \
|
||||
}
|
||||
|
||||
#define DBGLOG_CRITICAL(...) {\
|
||||
if (DBGLEVEL >= DBG_ERROR) Dbprintf (__VA_ARGS__); \
|
||||
}
|
||||
|
||||
#define DBGLOG_DEBUG(...) {\
|
||||
if (DBGLEVEL >= DBG_DEBUG) Dbprintf (__VA_ARGS__); \
|
||||
}
|
||||
|
||||
#define DBGLOG_TRACE(...) {\
|
||||
if (DBGLEVEL >= DBG_EXTENDED) Dbprintf (__VA_ARGS__); \
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -48,7 +48,8 @@
|
|||
|
||||
#define DBGLOG_LEVEL 0
|
||||
|
||||
#include "dbglog/dbglog.h"
|
||||
//#include "dbglog/dbglog.h"
|
||||
#include "dbprint.h"
|
||||
|
||||
extern void *UMM_MALLOC_CFG_HEAP_ADDR;
|
||||
extern uint32_t UMM_MALLOC_CFG_HEAP_SIZE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue