]> Git Repo - qemu.git/commitdiff
scripts/cpu-x86-uarch-abi: fix CLI parsing
authorJohn Snow <[email protected]>
Mon, 10 Jan 2022 23:28:57 +0000 (18:28 -0500)
committerJohn Snow <[email protected]>
Fri, 21 Jan 2022 21:01:31 +0000 (16:01 -0500)
Signed-off-by: John Snow <[email protected]>
Reviewed-by: Daniel P. BerrangĂ© <[email protected]>
Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]>
scripts/cpu-x86-uarch-abi.py

index 08acc52a816fd6cb504ca74959f3a9f7c4994f43..8963d90f0bb8c5d7c92e7749113323525f14a4e5 100644 (file)
@@ -9,7 +9,7 @@
 from qemu import qmp
 import sys
 
-if len(sys.argv) != 1:
+if len(sys.argv) != 2:
     print("syntax: %s QMP-SOCK\n\n" % __file__ +
           "Where QMP-SOCK points to a QEMU process such as\n\n" +
           " # qemu-system-x86_64 -qmp unix:/tmp/qmp,server,nowait " +
@@ -66,7 +66,6 @@ levels = [
 
 
 sock = sys.argv[1]
-cmd = sys.argv[2]
 shell = qmp.QEMUMonitorProtocol(sock)
 shell.connect()
 
This page took 0.029175 seconds and 4 git commands to generate.