diff options
author | 2012-08-15 11:33:47 +0100 | |
---|---|---|
committer | 2012-09-05 15:48:56 -0300 | |
commit | fa779b65fa77d5632df1f8b2df33e9023dbc4cc8 (patch) | |
tree | ae51d5e45d49272cd05eeced47b41de04be49b37 /scripts/qapi-types.py | |
parent | Open up 1.3 development tree (diff) | |
download | qemu-fa779b65fa77d5632df1f8b2df33e9023dbc4cc8.tar.xz qemu-fa779b65fa77d5632df1f8b2df33e9023dbc4cc8.zip |
Add support for pretty-printing response in qmp-shell
Add a '-p' arg to the QMP/qmp-shell test program, which uses
the python pprint module to pretty-print the dictionary
returned from a command
$ qmp-shell -p /tmp/qemu
Welcome to the QMP low-level shell!
Connected to QEMU 1.1.50
(QEMU) query-cpus
{ u'return': [ { u'CPU': 0,
u'current': True,
u'halted': True,
u'pc': 1048556,
u'thread_id': 7108}]}
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'scripts/qapi-types.py')
0 files changed, 0 insertions, 0 deletions