From a02167ad88956653dcc1c53abea3a090190b3d6f Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Wed, 3 Nov 2021 23:37:44 +0100 Subject: [PATCH] Reduce assert stack depth This may cause page fault in test --- core/assert.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/assert.h b/core/assert.h index a48a58e..5bafdd8 100644 --- a/core/assert.h +++ b/core/assert.h @@ -6,7 +6,7 @@ do { \ if (!(p)) { \ printf("BUG at %s:%d assert(%s)\n", __FILE__, __LINE__, #p); \ - printStackTrace(5); \ + printStackTrace(3); \ while (1) { \ } \ } \ @@ -17,7 +17,7 @@ if (!(p)) { \ printf("BUG at %s:%d assert(%s)\n", __FILE__, __LINE__, #p); \ printf(__VA_ARGS__); \ - printStackTrace(5); \ + printStackTrace(3); \ while (1) { \ } \ } \