[Qemu-devel] [PATCH] Add support for pretty-printing response in qmp-shell

2012-08-15 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com 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)

Re: [Qemu-devel] [PATCH] Add support for pretty-printing response in qmp-shell

2012-08-15 Thread Peter Maydell
On 15 August 2012 11:33, Daniel P. Berrange berra...@redhat.com wrote: class QMPShell(qmp.QEMUMonitorProtocol): -def __init__(self, address): +def __init__(self, address, pp=None): qmp.QEMUMonitorProtocol.__init__(self, self.__get_address(address)) self._greeting =

Re: [Qemu-devel] [PATCH] Add support for pretty-printing response in qmp-shell

2012-08-15 Thread Luiz Capitulino
On Wed, 15 Aug 2012 11:33:47 +0100 Daniel P. Berrange berra...@redhat.com wrote: From: Daniel P. Berrange berra...@redhat.com 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