mirror of
https://github.com/seL4/seL4.git
synced 2026-03-27 10:29:57 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user