From 835b293d35a209d38047126443d41fa7090daa4c Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Mon, 19 Jun 2017 21:20:57 +0200 Subject: Use our own variant of 'assert' and 'assert_perror'. Our variants print stack traces on failures. This will make locating errors much easier. --- console-client/vga-dynafont.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'console-client/vga-dynafont.c') diff --git a/console-client/vga-dynafont.c b/console-client/vga-dynafont.c index 2cee47ed..c6627721 100644 --- a/console-client/vga-dynafont.c +++ b/console-client/vga-dynafont.c @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ #include -#include +#include #include #include #include @@ -848,7 +848,7 @@ dynafont_lookup_internal (dynafont_t df, bdf_font_t font, } while (pos != start_pos); - assert (found); + assert_backtrace (found); df->vga_font_free_indices_lgc--; df->vga_font_last_free_index_lgc = pos; } @@ -872,7 +872,7 @@ dynafont_lookup_internal (dynafont_t df, bdf_font_t font, } while (pos != start_pos); - assert (found); + assert_backtrace (found); df->vga_font_free_indices--; df->vga_font_last_free_index = pos; } -- cgit v1.2.3