From patchwork Thu May 27 10:22:29 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jes Sorensen X-Patchwork-Id: 53718 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 F1F3CB6F11 for ; Thu, 27 May 2010 20:24:49 +1000 (EST) Received: from localhost ([127.0.0.1]:33852 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHaGd-00011o-2w for incoming@patchwork.ozlabs.org; Thu, 27 May 2010 06:24:47 -0400 Received: from [140.186.70.92] (port=51939 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHaEY-0000UL-O7 for qemu-devel@nongnu.org; Thu, 27 May 2010 06:22:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHaEX-0001mO-Ot for qemu-devel@nongnu.org; Thu, 27 May 2010 06:22:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57370) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHaEX-0001m7-Gj for qemu-devel@nongnu.org; Thu, 27 May 2010 06:22:37 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o4RAMWhD001843 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 27 May 2010 06:22:33 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4RAMUKJ012602; Thu, 27 May 2010 06:22:31 -0400 From: Jes.Sorensen@redhat.com To: qemu-devel@nongnu.org Date: Thu, 27 May 2010 12:22:29 +0200 Message-Id: <1274955749-20689-1-git-send-email-Jes.Sorensen@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: blauwirbel@gmail.com, Jes Sorensen Subject: [Qemu-devel] [PATCH] vhost_net.c: v2 Fix build failure introduced by 0bfcd599e3f5c5679cc7d0165a0a1822e2f60de2 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list 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 From: Jes Sorensen Fix build failure introduced by 0bfcd599e3f5c5679cc7d0165a0a1822e2f60de2 The format statement expects unsigned long on x86_64, but receives unsigned long long, so gcc exits with an error. Signed-off-by: Jes Sorensen --- hw/vhost_net.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/vhost_net.c b/hw/vhost_net.c index 26dae79..606aa0c 100644 --- a/hw/vhost_net.c +++ b/hw/vhost_net.c @@ -100,7 +100,7 @@ struct vhost_net *vhost_net_init(VLANClientState *backend, int devfd) } if (~net->dev.features & net->dev.backend_features) { fprintf(stderr, "vhost lacks feature mask %" PRIu64 " for backend\n", - ~net->dev.features & net->dev.backend_features); + (uint64_t)(~net->dev.features & net->dev.backend_features)); vhost_dev_cleanup(&net->dev); goto fail; }