xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH for 4.6] tools/xen-access: use PRI_xen_pfn
@ 2015-09-03 18:27 Wei Liu
  2015-09-03 18:32 ` Tamas K Lengyel
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Wei Liu @ 2015-09-03 18:27 UTC (permalink / raw)
  To: Xen-devel
  Cc: Ian Jackson, Tamas K Lengyel, Wei Liu, Ian Campbell,
	Razvan Cojocaru

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 <wei.liu2@citrix.com>
---
Cc: Razvan Cojocaru <rcojocaru@bitdefender.com>
Cc: Tamas K Lengyel <tamas@tklengyel.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
---
 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;
 
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH for 4.6] tools/xen-access: use PRI_xen_pfn
  2015-09-03 18:27 [PATCH for 4.6] tools/xen-access: use PRI_xen_pfn Wei Liu
@ 2015-09-03 18:32 ` Tamas K Lengyel
  2015-09-03 18:36 ` Razvan Cojocaru
  2015-09-04 14:40 ` Ian Campbell
  2 siblings, 0 replies; 4+ messages in thread
From: Tamas K Lengyel @ 2015-09-03 18:32 UTC (permalink / raw)
  To: Wei Liu; +Cc: Xen-devel, Ian Jackson, Ian Campbell, Razvan Cojocaru


[-- Attachment #1.1: Type: text/plain, Size: 467 bytes --]

On Thu, Sep 3, 2015 at 12:27 PM, Wei Liu <wei.liu2@citrix.com> 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 <wei.liu2@citrix.com>
>

Acked-by: Tamas K Lengyel <tamas@tklengyel.com>

[-- Attachment #1.2: Type: text/html, Size: 996 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH for 4.6] tools/xen-access: use PRI_xen_pfn
  2015-09-03 18:27 [PATCH for 4.6] tools/xen-access: use PRI_xen_pfn Wei Liu
  2015-09-03 18:32 ` Tamas K Lengyel
@ 2015-09-03 18:36 ` Razvan Cojocaru
  2015-09-04 14:40 ` Ian Campbell
  2 siblings, 0 replies; 4+ messages in thread
From: Razvan Cojocaru @ 2015-09-03 18:36 UTC (permalink / raw)
  To: Wei Liu, Xen-devel; +Cc: Tamas K Lengyel, Ian Jackson, Ian Campbell

On 09/03/2015 09:27 PM, 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 <wei.liu2@citrix.com>

Acked-by: Razvan Cojocaru <rcojocaru@bitdefender.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH for 4.6] tools/xen-access: use PRI_xen_pfn
  2015-09-03 18:27 [PATCH for 4.6] tools/xen-access: use PRI_xen_pfn Wei Liu
  2015-09-03 18:32 ` Tamas K Lengyel
  2015-09-03 18:36 ` Razvan Cojocaru
@ 2015-09-04 14:40 ` Ian Campbell
  2 siblings, 0 replies; 4+ messages in thread
From: Ian Campbell @ 2015-09-04 14:40 UTC (permalink / raw)
  To: Wei Liu, Xen-devel; +Cc: Tamas K Lengyel, Ian Jackson, Razvan Cojocaru

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 <wei.liu2@citrix.com>

Applied with both acks.

> ---
> Cc: Razvan Cojocaru <rcojocaru@bitdefender.com>
> Cc: Tamas K Lengyel <tamas@tklengyel.com>
> Cc: Ian Jackson <ian.jackson@eu.citrix.com>
> Cc: Ian Campbell <ian.campbell@citrix.com>
> ---
>  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;
>  

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-09-04 14:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-03 18:27 [PATCH for 4.6] tools/xen-access: use PRI_xen_pfn Wei Liu
2015-09-03 18:32 ` Tamas K Lengyel
2015-09-03 18:36 ` Razvan Cojocaru
2015-09-04 14:40 ` Ian Campbell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).