debug: Add DL macro for additional loader debug

This commit is contained in:
Kim Woelders 2021-12-18 08:47:26 +01:00
parent f09d3d022a
commit 549ff77b85
1 changed files with 6 additions and 1 deletions

View File

@ -9,10 +9,12 @@
#define DBG_FILE 0x0001
#define DBG_LOAD 0x0002
#define DBG_LDR 0x0004
#define DBG_LDR2 0x0008
#if __LOADER_COMMON_H
#undef D
#define D(fmt...) DC(DBG_LDR, fmt)
#define D(fmt...) DC(DBG_LDR, fmt)
#define DL(fmt...) DC(DBG_LDR2, fmt)
#endif
__EXPORT__ extern unsigned int __imlib_debug;
@ -26,6 +28,9 @@ unsigned int __imlib_time_us(void);
#define D(fmt...)
#define DC(fmt...)
#if __LOADER_COMMON_H
#define DL(fmt...)
#endif
#endif /* IMLIB2_DEBUG */