[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v2] xen: netback: fix printf format string warning



From: Ian Campbell <ian.campbell@xxxxxxxxxx>
Date: Mon, 1 Jun 2015 11:30:04 +0100

> drivers/net/xen-netback/netback.c: In function ʽxenvif_tx_build_gopsʼ:
> drivers/net/xen-netback/netback.c:1253:8: warning: format ʽ%luʼ expects 
> argument of type ʽlong unsigned intʼ, but argument 5 has type ʽintʼ 
> [-Wformat=]
>         (txreq.offset&~PAGE_MASK) + txreq.size);
>         ^
> 
> PAGE_MASK's type can vary by arch, so a cast is needed.
> 
> Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
> ----
> v2: Cast to unsigned long, since PAGE_MASK can vary by arch.

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.