From 0bf7ec07b719bcbfb0402a292202ead3d677501b Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 24 Feb 2020 00:22:13 +0900 Subject: [PATCH] Make debug output verbosity 2 and internal diagnostic sources level 1. --- tools/qfcc/source/diagnostic.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/qfcc/source/diagnostic.c b/tools/qfcc/source/diagnostic.c index 5ba576212..84892687f 100644 --- a/tools/qfcc/source/diagnostic.c +++ b/tools/qfcc/source/diagnostic.c @@ -114,7 +114,7 @@ __warning (expr_t *e, const char *file, int line, format_message (message, "warning", e, fmt, args); } - if (options.verbosity > 1) { + if (options.verbosity) { dasprintf (message, " (%s:%d)", file, line); } if (warning_hook) { @@ -130,7 +130,7 @@ _debug (expr_t *e, const char *file, int line, const char *fmt, ...) { va_list args; - if (options.verbosity < 1) + if (options.verbosity < 2) return; report_function (e); @@ -208,7 +208,7 @@ _notice (expr_t *e, const char *file, int line, const char *fmt, ...) report_function (e); format_message (message, "notice", e, fmt, args); - if (options.verbosity > 1) { + if (options.verbosity) { dasprintf (message, " (%s:%d)", file, line); } if (notice_hook) { @@ -257,7 +257,7 @@ _error (expr_t *e, const char *file, int line, const char *fmt, ...) dstring_t *message = dstring_new (); format_message (message, "error", e, fmt, args); - if (options.verbosity > 1) { + if (options.verbosity) { dasprintf (message, " (%s:%d)", file, line); } if (error_hook) {