From patchwork Mon Oct 19 07:11:45 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamalesh Babulal X-Patchwork-Id: 36363 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 7EEDEB7B95 for ; Mon, 19 Oct 2009 18:12:54 +1100 (EST) Received: from localhost ([127.0.0.1]:50730 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzmQE-00076J-Uf for incoming@patchwork.ozlabs.org; Mon, 19 Oct 2009 03:12:50 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MzmPk-00075l-UE for qemu-devel@nongnu.org; Mon, 19 Oct 2009 03:12:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MzmPf-00074z-C9 for qemu-devel@nongnu.org; Mon, 19 Oct 2009 03:12:19 -0400 Received: from [199.232.76.173] (port=58863 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzmPf-00074w-5f for qemu-devel@nongnu.org; Mon, 19 Oct 2009 03:12:15 -0400 Received: from e23smtp02.au.ibm.com ([202.81.31.144]:37361) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MzmPd-0000D8-3h for qemu-devel@nongnu.org; Mon, 19 Oct 2009 03:12:15 -0400 Received: from d23relay02.au.ibm.com (d23relay02.au.ibm.com [202.81.31.244]) by e23smtp02.au.ibm.com (8.14.3/8.13.1) with ESMTP id n9J79NGF011805 for ; Mon, 19 Oct 2009 18:09:23 +1100 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay02.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n9J7Bn9d1236992 for ; Mon, 19 Oct 2009 18:11:49 +1100 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n9J7BntI027061 for ; Mon, 19 Oct 2009 18:11:49 +1100 Received: from linux.vnet.ibm.com ([9.124.158.38]) by d23av04.au.ibm.com (8.12.11.20060308/8.12.11) with SMTP id n9J7BkF5026999; Mon, 19 Oct 2009 18:11:47 +1100 Date: Mon, 19 Oct 2009 12:41:45 +0530 From: Kamalesh Babulal To: mtosatti@redhat.com Message-ID: <20091019071145.GA5935@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Cc: qemu-devel@nongnu.org Subject: [Qemu-devel] qemu-0.11.50 build breaks at monitor.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Kamalesh Babulal List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Hi Marcelo, qemu-0.11.50 build breaks with CC x86_64-softmmu/monitor.o cc1: warnings being treated as errors /other/srcs/qemu-kvm/monitor.c: In function 'print_cpu_iter': /other/srcs/qemu-kvm/monitor.c:450: error: format '%ld' expects type 'long int', but argument 3 has type 'int64_t' make[3]: *** [monitor.o] Error 1 Changes to print_cpu_iter was introduced by commit 00ee594280d46290629ccd5fcd1b5c1a21605e4c Author: Marcelo Tosatti Date: Wed Oct 14 19:21:10 2009 -0300 Add missing thread_id field in "info cpus" typecasting it int long, helps monitor.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Kamalesh diff --git a/monitor.c b/monitor.c index b4c4878..5416fdb 100644 --- a/monitor.c +++ b/monitor.c @@ -447,7 +447,7 @@ static void print_cpu_iter(QObject *obj, void *opaque) if (strcmp(qdict_get_str(cpu, "halted"), "yes") == 0) monitor_printf(mon, " (halted)"); - monitor_printf(mon, " thread_id=%ld", qdict_get_int(cpu, "thread_id")); + monitor_printf(mon, " thread_id=%ld", (int long)qdict_get_int(cpu, "thread_id")); monitor_printf(mon, "\n"); }