From 2d6ff326914f965ea5ee187213e8f2116c120d48 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Tue, 29 May 2012 11:36:31 +0200 Subject: [PATCH 1/1] cli: always show G_LOG_LEVEL_CRITICAL messages --- sigrok-cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sigrok-cli.c b/sigrok-cli.c index 48f36cc..3fda047 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -992,7 +992,7 @@ static void logger(const gchar *log_domain, GLogLevelFlags log_level, * All messages, warnings, errors etc. go to stderr (not stdout) in * order to not mess up the CLI tool data output, e.g. VCD output. */ - if (log_level & (G_LOG_LEVEL_ERROR | G_LOG_LEVEL_WARNING) + if (log_level & (G_LOG_LEVEL_ERROR | G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING) || opt_loglevel > SR_LOG_WARN) { fprintf(stderr, "%s\n", message); fflush(stderr); -- 2.30.2