From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50960) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VViFW-0002Lo-Mb for qemu-devel@nongnu.org; Mon, 14 Oct 2013 09:32:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VViFN-000166-L3 for qemu-devel@nongnu.org; Mon, 14 Oct 2013 09:31:54 -0400 Received: from e28smtp05.in.ibm.com ([122.248.162.5]:52607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VViFM-00015F-Va for qemu-devel@nongnu.org; Mon, 14 Oct 2013 09:31:45 -0400 Received: from /spool/local by e28smtp05.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 14 Oct 2013 19:01:37 +0530 Received: from d28relay01.in.ibm.com (d28relay01.in.ibm.com [9.184.220.58]) by d28dlp02.in.ibm.com (Postfix) with ESMTP id C9425394003F for ; Mon, 14 Oct 2013 19:01:14 +0530 (IST) Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay01.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r9EDYD7234537676 for ; Mon, 14 Oct 2013 19:04:14 +0530 Received: from d28av02.in.ibm.com (localhost [127.0.0.1]) by d28av02.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r9EDVVFY023560 for ; Mon, 14 Oct 2013 19:01:32 +0530 From: Mike Qiu Date: Mon, 14 Oct 2013 09:31:29 -0400 Message-Id: <1381757489-3310-1-git-send-email-qiudayu@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH] hmp: Add '\n' in monitor_printf() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Mike Qiu , lcapitulino@redhat.com 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 --- 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