From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH for 4.6] tools/xen-access: use PRI_xen_pfn Date: Fri, 4 Sep 2015 15:40:44 +0100 Message-ID: <1441377644.26292.523.camel@citrix.com> References: <1441304867-20284-1-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZXsAa-00050v-4B for xen-devel@lists.xenproject.org; Fri, 04 Sep 2015 14:40:48 +0000 In-Reply-To: <1441304867-20284-1-git-send-email-wei.liu2@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu , Xen-devel Cc: Tamas K Lengyel , Ian Jackson , Razvan Cojocaru List-Id: xen-devel@lists.xenproject.org On Thu, 2015-09-03 at 19:27 +0100, Wei Liu wrote: > Otherwise when building with 32bit compiler, we get: > > xen-access.c: In function 'xenaccess_init': > xen-access.c:263:5: error: format '%llx' expects argument of type 'long > long unsigned int', but argument 3 has type 'xen_pfn_t' [-Werror=format] > cc1: all warnings being treated as errors > > Signed-off-by: Wei Liu Applied with both acks. > --- > Cc: Razvan Cojocaru > Cc: Tamas K Lengyel > Cc: Ian Jackson > Cc: Ian Campbell > --- > tools/tests/xen-access/xen-access.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/tests/xen-access/xen-access.c b/tools/tests/xen > -access/xen-access.c > index cdb8f4e..a52ca6e 100644 > --- a/tools/tests/xen-access/xen-access.c > +++ b/tools/tests/xen-access/xen-access.c > @@ -260,7 +260,7 @@ xenaccess_t *xenaccess_init(xc_interface **xch_r, > domid_t domain_id) > goto err; > } > > - DPRINTF("max_gpfn = %"PRIx64"\n", xenaccess->max_gpfn); > + DPRINTF("max_gpfn = %"PRI_xen_pfn"\n", xenaccess->max_gpfn); > > return xenaccess; >