From 32ff118e2978511180e41f2e30584b2e76defb64 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 6 Sep 2022 00:09:06 +0100 Subject: [PATCH] use log function for warnings about .mdwn files in pagereader.py --- src/openpower/decoder/pseudo/pagereader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.30.2