From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3Bar-00019W-HJ for qemu-devel@nongnu.org; Wed, 28 Oct 2009 12:41:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3Bal-000118-DK for qemu-devel@nongnu.org; Wed, 28 Oct 2009 12:41:52 -0400 Received: from [199.232.76.173] (port=53101 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3Bak-00010D-J8 for qemu-devel@nongnu.org; Wed, 28 Oct 2009 12:41:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46025) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3Bak-0000bv-2R for qemu-devel@nongnu.org; Wed, 28 Oct 2009 12:41:46 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9SGfiqF028934 for ; Wed, 28 Oct 2009 12:41:44 -0400 Received: from [10.35.0.60] (dhcp-0-60.tlv.redhat.com [10.35.0.60]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9SGfe91020523 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 28 Oct 2009 12:41:43 -0400 Message-ID: <4AE87443.4020101@redhat.com> Date: Wed, 28 Oct 2009 18:41:39 +0200 From: Naphtali Sprei MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] Added imlpementation for qemu_error for non-qemu executables List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Now qemu_error can be called also from shared files, e.g. block.c. Signed-off-by: Naphtali Sprei --- qemu-tool.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/qemu-tool.c b/qemu-tool.c index ba24aa2..186c4f7 100644 --- a/qemu-tool.c +++ b/qemu-tool.c @@ -88,3 +88,12 @@ int64_t qemu_get_clock(QEMUClock *clock) qemu_gettimeofday(&tv); return (tv.tv_sec * 1000000000LL + (tv.tv_usec * 1000)) / 1000000; } + +void qemu_error(const char *fmt, ...) +{ + va_list args; + + va_start(args, fmt); + vfprintf(stderr, fmt, args); + va_end(args); +} -- 1.6.3.3