From: Bert Vermeulen Date: Tue, 29 May 2012 09:36:31 +0000 (+0200) Subject: cli: always show G_LOG_LEVEL_CRITICAL messages X-Git-Tag: sigrok-cli-0.3.1~15 X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=commitdiff_plain;h=2d6ff326914f965ea5ee187213e8f2116c120d48;hp=0399696219fdd7a74d8b5258a4ab8a4ccccf11e7 cli: always show G_LOG_LEVEL_CRITICAL messages --- 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);