better debug print.

This commit is contained in:
Gatsby Van
2023-12-24 13:03:18 +08:00
parent 6ab4293c76
commit 2a20921193
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -40,6 +40,6 @@
* *
******************************************************************************/ ******************************************************************************/
void AppAssert(const char * file, int line){ void AppAssert(const char * file, int line){
DBG_PRINT("in %s #%4d [assert] .\n",file, line); DBG_PRINT("[assert]\tin %s:%4d.\n",file, line);
while(1); while(1);
} }
+1 -1
View File
@@ -43,7 +43,7 @@
#endif #endif
#if _814_DEBUG_LEVEL >= 1 #if _814_DEBUG_LEVEL >= 1
#define DBG_ERROR(...) __PRINT_BLOCK( \ #define DBG_ERROR(...) __PRINT_BLOCK( \
printf("[error]\tin"__FILE__":%4d ",__LINE__); \ printf("[error]\tin "__FILE__":%4d ",__LINE__); \
printf(__VA_ARGS__); \ printf(__VA_ARGS__); \
) )
#endif #endif