Received: from eggs.gnu.org ([2001:4830:134:3::10]:48012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWiig-0004XV-KT for qemu-devel@nongnu.org; Thu, 17 Oct 2013 04:14:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VWiib-0008KX-8t for qemu-devel@nongnu.org; Thu, 17 Oct 2013 04:14:10 -0400 Received: from mail-bk0-x22b.google.com ([2a00:1450:4008:c01::22b]:53051) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWiib-0008JE-1m for qemu-devel@nongnu.org; Thu, 17 Oct 2013 04:14:05 -0400 Received: by mail-bk0-f43.google.com with SMTP id mz13so675170bkb.16 for ; Thu, 17 Oct 2013 01:14:04 -0700 (PDT) Date: Thu, 17 Oct 2013 10:14:01 +0200 From: Stefan Hajnoczi Message-ID: <20131017081401.GB10774@stefanha-thinkpad.redhat.com> References: <1381979761-2180-1-git-send-email-qiudayu@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1381979761-2180-1-git-send-email-qiudayu@linux.vnet.ibm.com> Subject: Re: [Qemu-devel] [PATCH v2] hmp: solve '\n' in monitor_printf() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mike Qiu Cc: kwolf@redhat.com, benoit@irqsave.net, qemu-devel@nongnu.org, armbru@redhat.com, lcapitulino@redhat.com, stefanha@redhat.com, xiawenc@linux.vnet.ibm.com On Wed, Oct 16, 2013 at 11:16:01PM -0400, Mike Qiu wrote: > Change to v1: > remove '[not inserted]' line instead of adding '\n' > > 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 and > scsi0-cd2. > > At the same time, scsi0-hd0 already inserted, but still has > '[not inserted]' flag. This line should be removed. > > This patch is to solve this. > > Signed-off-by: Mike Qiu > --- > hmp.c | 2 -- > 1 file changed, 2 deletions(-) The commit message is out-of-date, this patch now drops the bogus "[not inserted]" output. I fixed up the commit message. In the future, please put the patch changelog after the "---" line so that git am does not include the changelog in the commit description. Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan