aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2022-01-10 18:28:57 -0500
committerJohn Snow <jsnow@redhat.com>2022-01-21 16:01:31 -0500
commit99221256151845f5eb4cedac750b08e7ab14d92d (patch)
tree6aaf75033e0212e8a0534747a8556990ab088d6e
parentfd9c3a6219b0470c356c8486188052d353846806 (diff)
downloadqemu-99221256151845f5eb4cedac750b08e7ab14d92d.zip
qemu-99221256151845f5eb4cedac750b08e7ab14d92d.tar.gz
qemu-99221256151845f5eb4cedac750b08e7ab14d92d.tar.bz2
scripts/cpu-x86-uarch-abi: fix CLI parsing
Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
-rw-r--r--scripts/cpu-x86-uarch-abi.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/cpu-x86-uarch-abi.py b/scripts/cpu-x86-uarch-abi.py
index 08acc52..8963d90 100644
--- a/scripts/cpu-x86-uarch-abi.py
+++ b/scripts/cpu-x86-uarch-abi.py
@@ -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()