qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] hmp: Add '\n' in monitor_printf()
@ 2013-10-14 13:31 Mike Qiu
  2013-10-14 14:36 ` Markus Armbruster
  0 siblings, 1 reply; 12+ messages in thread
From: Mike Qiu @ 2013-10-14 13:31 UTC (permalink / raw)
  To: qemu-devel; +Cc: Mike Qiu, lcapitulino

Without this, output of 'info block'

scsi0-hd0: /images/f18-ppc64.qcow2 (qcow2)
 [not inserted]
scsi0-cd2: [not inserted]
    Removable device: not locked, tray closed

floppy0: [not inserted]
    Removable device: not locked, tray closed

sd0: [not inserted]
    Removable device: not locked, tray closed

There will be no additional lines between scsi0-hd0 scsi0-cd2,
and break the info style.

This patch is to solve this.

Signed-off-by: Mike Qiu <qiudayu@linux.vnet.ibm.com>
---
 hmp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hmp.c b/hmp.c
index 5891507..2d2e5f8 100644
--- a/hmp.c
+++ b/hmp.c
@@ -367,7 +367,7 @@ void hmp_info_block(Monitor *mon, const QDict *qdict)
                             info->value->inserted->iops_wr_max,
                             info->value->inserted->iops_size);
         } else {
-            monitor_printf(mon, " [not inserted]");
+            monitor_printf(mon, " [not inserted]\n");
         }
 
         if (verbose) {
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-10-16  9:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-14 13:31 [Qemu-devel] [PATCH] hmp: Add '\n' in monitor_printf() Mike Qiu
2013-10-14 14:36 ` Markus Armbruster
2013-10-15  3:38   ` mike
2013-10-15  8:58     ` Kevin Wolf
2013-10-15  9:31       ` Markus Armbruster
2013-10-15 10:12         ` mike
2013-10-15 10:07       ` mike
2013-10-15 11:14         ` Benoît Canet
2013-10-16  7:29         ` Wenchao Xia
2013-10-16  7:47           ` Markus Armbruster
2013-10-16  7:56             ` Wenchao Xia
2013-10-16  9:03               ` mike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).