Reduce assert stack depth

This may cause page fault in test
This commit is contained in:
Mathieu Maret 2021-11-03 23:37:44 +01:00
parent 7c227a730c
commit a02167ad88

View File

@ -6,7 +6,7 @@
do { \ do { \
if (!(p)) { \ if (!(p)) { \
printf("BUG at %s:%d assert(%s)\n", __FILE__, __LINE__, #p); \ printf("BUG at %s:%d assert(%s)\n", __FILE__, __LINE__, #p); \
printStackTrace(5); \ printStackTrace(3); \
while (1) { \ while (1) { \
} \ } \
} \ } \
@ -17,7 +17,7 @@
if (!(p)) { \ if (!(p)) { \
printf("BUG at %s:%d assert(%s)\n", __FILE__, __LINE__, #p); \ printf("BUG at %s:%d assert(%s)\n", __FILE__, __LINE__, #p); \
printf(__VA_ARGS__); \ printf(__VA_ARGS__); \
printStackTrace(5); \ printStackTrace(3); \
while (1) { \ while (1) { \
} \ } \
} \ } \