From 8ed2fceba30c858222674e819dcd73ad7522ce0f Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Sat, 29 Oct 2022 18:53:52 +0200 Subject: [PATCH] Fix extract_blocks.py --- scripts/extract_blocks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/extract_blocks.py b/scripts/extract_blocks.py index 1bb0e845..e26d1f2f 100755 --- a/scripts/extract_blocks.py +++ b/scripts/extract_blocks.py @@ -50,13 +50,13 @@ with open(image, "rb") as image: "<6sBB32s8sLHHQ", header ) if ident != b"DWARFS": - printf(f"error: expected dwarfs header") + print(f"error: expected dwarfs header") raise SystemExit(1) if sectype not in sectypes: - printf(f"error: unexpected section type ({sectype})") + print(f"error: unexpected section type ({sectype})") raise SystemExit(1) if compalg not in compalgs: - printf(f"error: unexpected compression algorithm ({compalg})") + print(f"error: unexpected compression algorithm ({compalg})") raise SystemExit(1) print( f"{ident.decode('ascii')} v{major}.{minor} [{secno}] {sectypes[sectype]} ({compalgs[compalg]}) {blocklen} bytes"