From e3c7e391c166cc456aa7e06f10a0669477fd50da Mon Sep 17 00:00:00 2001
From: Adam Felizzi <Adam.Felizzi@data61.csiro.au>
Date: Fri, 8 Mar 2019 16:11:39 +1100
Subject: [PATCH] hardware_gen: Use logging.warning for import error

Updated YAML validation error message to use logging.warning,
forwarding the output to stderr. This would otherwise end up
in the CMake dts compatibility string.
---
 tools/hardware_gen.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/hardware_gen.py b/tools/hardware_gen.py
index c1e09b8b8..ba8d136dc 100755
--- a/tools/hardware_gen.py
+++ b/tools/hardware_gen.py
@@ -24,7 +24,7 @@ from jinja2 import Environment, BaseLoader
 try:
     from jsonschema import validate
 except ImportError:
-    print("Skipping hardware YAML validation, `pip install jsonschema` to validate")
+    logging.warning("Skipping hardware YAML validation, `pip install jsonschema` to validate")
     def validate(*args, **kwargs):
         pass
 
-- 
GitLab