summary refs log tree commit diff stats
path: root/hmp-commands.hx
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2012-08-15 11:33:47 +0100
committerLuiz Capitulino <lcapitulino@redhat.com>2012-09-05 15:48:56 -0300
commitfa779b65fa77d5632df1f8b2df33e9023dbc4cc8 (patch)
treeae51d5e45d49272cd05eeced47b41de04be49b37 /hmp-commands.hx
parentf45ddd14209a4d1b95a4096d50a561b7f6270118 (diff)
downloadfocaccia-qemu-fa779b65fa77d5632df1f8b2df33e9023dbc4cc8.tar.gz
focaccia-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 'hmp-commands.hx')
0 files changed, 0 insertions, 0 deletions