From d18d5cc7959f6b687c46ecebf7376ce8016a3ef1 Mon Sep 17 00:00:00 2001
From: Peter Leitzen <pleitzen@gitlab.com>
Date: Tue, 27 Dec 2022 16:35:39 +0100
Subject: [PATCH] CI: Print warnigns on stderr as well

This side steps sync problems in CI trace logs and makes printing
consistent.
---
 scripts/utils.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/utils.sh b/scripts/utils.sh
index 0d120473bb63b..c71de666ac65f 100644
--- a/scripts/utils.sh
+++ b/scripts/utils.sh
@@ -132,9 +132,9 @@ function fail_on_warnings() {
   then
     echoerr "There were warnings:"
     echoerr "======================== Filtered warnings ====================================="
-    echo "$warnings"
+    echo "$warnings" >&2
     echoerr "======================= Unfiltered warnings ===================================="
-    cat "$warning_file"
+    cat "$warning_file" >&2
     echoerr "================================================================================"
     rm -f "$warning_file"
     return 1
-- 
GitLab