diff options
Diffstat (limited to 'src/common/debug.c')
-rw-r--r-- | src/common/debug.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/debug.c b/src/common/debug.c index 2130ac5..c075f13 100644 --- a/src/common/debug.c +++ b/src/common/debug.c @@ -24,6 +24,7 @@ #include <stdint.h> #include <errno.h> #include "debug.h" +#include "call.h" const char *debug_level[] = { "debug ", @@ -78,6 +79,7 @@ void _printdebug(const char *file, const char *function, int line, int cat, int while ((p = strchr(file, '/'))) file = p + 1; + clear_console_text(); // printf("%s%s:%d %s() %s: %s\033[0;39m", debug_cat[cat].color, file, line, function, debug_level[level], buffer); printf("%s%s:%d %s: %s\033[0;39m", debug_cat[cat].color, file, line, debug_level[level], buffer); fflush(stdout); |