Received: from [140.186.70.92] (port=46194 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OIOId-0001y6-TK for qemu-devel@nongnu.org; Sat, 29 May 2010 11:50:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OIH7D-0000ZM-Db for qemu-devel@nongnu.org; Sat, 29 May 2010 04:09:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64941) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OIH7D-0000ZA-3p for qemu-devel@nongnu.org; Sat, 29 May 2010 04:09:55 -0400 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH v3 12/17] monitor: return length of printed string via monitor_[v]printf References: <98b58109981ebe99a845fdb3bb27046f332ee0cf.1274612367.git.jan.kiszka@web.de> Date: Sat, 29 May 2010 10:09:50 +0200 In-Reply-To: <98b58109981ebe99a845fdb3bb27046f332ee0cf.1274612367.git.jan.kiszka@web.de> (Jan Kiszka's message of "Sun, 23 May 2010 12:59:25 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Anthony Liguori , Juan Quintela , Jan Kiszka , qemu-devel@nongnu.org, Luiz Capitulino , Blue Swirl , Avi Kivity Jan Kiszka writes: > From: Jan Kiszka > > This simply forwards the result of the internal vsnprintf to the callers > of monitor_printf and monitor_vprintf. When invoked over a QMP session > or in absence of an active monitor, -1 is returned. > > Signed-off-by: Jan Kiszka Appreciated! Opens the door to addressing the TODOs in qemu-error.c.