mirror of https://gitlab.freedesktop.org/mesa/mesa
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:
parent
0e61560266
commit
ae5231a0de
|
@ -175,12 +175,10 @@ def control(args):
|
||||||
print('ERROR: invalid protocol')
|
print('ERROR: invalid protocol')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
if args.info:
|
if args.info:
|
||||||
info = "Protocol Version: {}\n"
|
print(f"Protocol Version: {version}")
|
||||||
info += "Device Name: {}\n"
|
print(f"Device Name: {name}")
|
||||||
info += "Mesa Version: {}"
|
print(f"Mesa Version: {mesa_version}")
|
||||||
print(info.format(version, name, mesa_version))
|
|
||||||
|
|
||||||
if args.cmd == 'start-capture':
|
if args.cmd == 'start-capture':
|
||||||
conn.send(bytearray(':capture=1;', 'utf-8'))
|
conn.send(bytearray(':capture=1;', 'utf-8'))
|
||||||
|
|
Loading…
Reference in New Issue