From 91af18b5a60cd984e3489707b89050312392cba6 Mon Sep 17 00:00:00 2001 From: "Enrico Fraccaroli (Galfurian)" Date: Mon, 31 Jan 2022 15:18:37 -0500 Subject: [PATCH] Do not print function name when debugging. --- libc/src/debug.c | 6 +++++- mentos/src/io/debug.c | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/libc/src/debug.c b/libc/src/debug.c index 1626ea2..89c3e54 100644 --- a/libc/src/debug.c +++ b/libc/src/debug.c @@ -36,9 +36,13 @@ static inline void __debug_print_header(const char *file, const char *fun, int l sprintf(tmp_prefix, "%s:%d", file, line); sprintf(final_prefix, " %-20s ", tmp_prefix); dbg_puts(final_prefix); +#if 0 dbg_putchar('|'); - sprintf(final_prefix, " %-25s ] ", fun); + sprintf(final_prefix, " %-25s ]", fun); dbg_puts(final_prefix); +#else + dbg_putchar(']'); +#endif } void dbg_printf(const char *file, const char *fun, int line, const char *format, ...) diff --git a/mentos/src/io/debug.c b/mentos/src/io/debug.c index 9623edc..0bb7d4d 100644 --- a/mentos/src/io/debug.c +++ b/mentos/src/io/debug.c @@ -65,9 +65,13 @@ static inline void __debug_print_header(const char *file, const char *fun, int l sprintf(tmp_prefix, "%s:%d", file, line); sprintf(final_prefix, " %-20s ", tmp_prefix); dbg_puts(final_prefix); +#if 0 dbg_putchar('|'); sprintf(final_prefix, " %-25s ]", fun); dbg_puts(final_prefix); +#else + dbg_putchar(']'); +#endif dbg_putchar(' '); if (header) { dbg_puts(header);