]> sigrok.org Git - sigrok-cli.git/commitdiff
cli: always show G_LOG_LEVEL_CRITICAL messages
authorBert Vermeulen <redacted>
Tue, 29 May 2012 09:36:31 +0000 (11:36 +0200)
committerBert Vermeulen <redacted>
Tue, 29 May 2012 09:36:31 +0000 (11:36 +0200)
sigrok-cli.c

index 48f36ccc7d01a318d813334a007b1745906d71d9..3fda0471463ba1684181bbcd89332a82f76c0551 100644 (file)
@@ -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.
         */
         * 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);
                        || opt_loglevel > SR_LOG_WARN) {
                fprintf(stderr, "%s\n", message);
                fflush(stderr);