use log function for warnings about .mdwn files in pagereader.py
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 5 Sep 2022 23:09:06 +0000 (00:09 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 5 Sep 2022 23:09:06 +0000 (00:09 +0100)
src/openpower/decoder/pseudo/pagereader.py

index 5263285853712362aed4ef660b021ddc9cc8b448..debeccec3623e48bc28b03f9d84b1d69070f2fec 100644 (file)
@@ -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