sof_ri_info: print error messages on stderr

stderr is often highlighted with a different color.
This also makes the usual >/dev/null redirection possible.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2021-10-13 23:39:57 +00:00 committed by Liam Girdwood
parent 2dbec9f2b2
commit 31b3a39202
1 changed files with 2 additions and 1 deletions

View File

@ -859,7 +859,8 @@ class BinReader():
def error(self, logerror, off_delta=0):
""" Prints 'error' log to the output
"""
print(self.offset_to_string(off_delta) + '\terror: ' + logerror)
print(self.offset_to_string(off_delta) + '\terror: ' + logerror,
file=sys.stderr)
# Data Model