scripts: fix broken error path in modinfo-collect.py
sys.stderr.print is dropped long ago and should not be used. Official replacement is sys.stderr.write The problem has been found debugging building on some fancy platform derived from Debian. Signed-off-by: Denis V. Lunev <den@openvz.org> CC: John Snow <jsnow@redhat.com> CC: Cleber Rosa <crosa@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20251203220138.159656-1-den@openvz.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
93332c90bf
commit
8062bfd517
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ def main(args):
|
|||
for obj in args:
|
||||
entry = compile_commands.get(obj, None)
|
||||
if not entry:
|
||||
sys.stderr.print('modinfo: Could not find object file', obj)
|
||||
sys.stderr.write(f'modinfo: Could not find object file {obj}')
|
||||
sys.exit(1)
|
||||
src = entry['file']
|
||||
if not src.endswith('.c'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue