vk/overlay-layer: simplify print and make it more readable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28805>
This commit is contained in:
Eric Engestrom 2024-04-18 12:25:19 +02:00 committed by Marge Bot
parent 0e61560266
commit ae5231a0de
1 changed files with 3 additions and 5 deletions

View File

@ -175,12 +175,10 @@ def control(args):
print('ERROR: invalid protocol')
sys.exit(1)
if args.info:
info = "Protocol Version: {}\n"
info += "Device Name: {}\n"
info += "Mesa Version: {}"
print(info.format(version, name, mesa_version))
print(f"Protocol Version: {version}")
print(f"Device Name: {name}")
print(f"Mesa Version: {mesa_version}")
if args.cmd == 'start-capture':
conn.send(bytearray(':capture=1;', 'utf-8'))