]> git.proxmox.com Git - mirror_qemu.git/commit
Add support for pretty-printing response in qmp-shell
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 15 Aug 2012 10:33:47 +0000 (11:33 +0100)
committerLuiz Capitulino <lcapitulino@redhat.com>
Wed, 5 Sep 2012 18:48:56 +0000 (15:48 -0300)
commitfa779b65fa77d5632df1f8b2df33e9023dbc4cc8
treeae51d5e45d49272cd05eeced47b41de04be49b37
parentf45ddd14209a4d1b95a4096d50a561b7f6270118
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>
QMP/qmp-shell