From: Luke Kenneth Casson Leighton Date: Mon, 5 Sep 2022 23:09:06 +0000 (+0100) Subject: use log function for warnings about .mdwn files in pagereader.py X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=32ff118e2978511180e41f2e30584b2e76defb64;p=openpower-isa.git use log function for warnings about .mdwn files in pagereader.py --- diff --git a/src/openpower/decoder/pseudo/pagereader.py b/src/openpower/decoder/pseudo/pagereader.py index 52632858..debeccec 100644 --- a/src/openpower/decoder/pseudo/pagereader.py +++ b/src/openpower/decoder/pseudo/pagereader.py @@ -44,6 +44,7 @@ this translates to: blank(s) (optional for convenience at end-of-page) """ +from openpower.util import log from collections import namedtuple, OrderedDict from copy import copy import os @@ -95,7 +96,7 @@ class ISA: if "swp" in pth: continue if not pth.endswith(".mdwn"): - print ("warning, file not .mdwn, skipping", pth) + log ("warning, file not .mdwn, skipping", pth) continue self.read_file(pth) continue