vppapigen: fix f-string in crcchecker

Type: fix
Change-Id: I9ae35b34cfd7de96726aa0b45987a896783ef7e0
Signed-off-by: Ole Troan <otroan@employees.org>
This commit is contained in:
Ole Troan 2024-09-09 09:17:37 +02:00 committed by Dave Wallace
parent 26be76cc3e
commit 8987d3a4ca

View File

@ -40,10 +40,13 @@ def crc_from_apigen(revision, filename):
if returncode.returncode != 0:
print(
f"vppapigen failed for {revision}:{filename} with "
"command\n {apigen}\n error: {rv}",
returncode.stderr.decode("ascii"),
f"command:\n {apigen}\n error: {returncode.returncode}",
file=sys.stderr,
)
if returncode.stderr:
print(f"stderr: {returncode.stderr.decode('ascii')}", file=sys.stderr)
if returncode.stdout:
print(f"stdout: {returncode.stdout.decode('ascii')}", file=sys.stderr)
sys.exit(-2)
return json.loads(returncode.stdout)