From patchwork Thu May 27 12:26:05 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jes Sorensen X-Patchwork-Id: 53756 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 D60CDB7D1B for ; Thu, 27 May 2010 22:45:27 +1000 (EST) Received: from localhost ([127.0.0.1]:44919 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHcSh-0003mf-Pb for incoming@patchwork.ozlabs.org; Thu, 27 May 2010 08:45:23 -0400 Received: from [140.186.70.92] (port=43985 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHcRb-0003CF-K2 for qemu-devel@nongnu.org; Thu, 27 May 2010 08:44:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHcCR-0004z6-Pm for qemu-devel@nongnu.org; Thu, 27 May 2010 08:28:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61569) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHcCR-0004yv-IM for qemu-devel@nongnu.org; Thu, 27 May 2010 08:28:35 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o4RCSWJm018568 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 27 May 2010 08:28:33 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4RCSUsa022988; Thu, 27 May 2010 08:28:31 -0400 From: Jes.Sorensen@redhat.com To: anthony@codemonkey.ws Date: Thu, 27 May 2010 14:26:05 +0200 Message-Id: <1274963165-22424-1-git-send-email-Jes.Sorensen@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: Jes Sorensen , qemu-devel@nongnu.org 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; }