Re: [PATCH] bs_sheepdog.c: fix length modifier of eprintf in read_write_object()

FUJITA Tomonori <[email protected]>
Newsgroups org.kernel.vger.stgt
Message-ID <[email protected]>
On Fri, 29 Nov 2013 01:18:06 +0900
Ryusuke Konishi <[email protected]> wrote:

> On 32-bit environments, the sheepdog driver causes the following
> compile warning because "%lx" is used for uint64_t type variables:
> 
> cc -c -DUSE_SIGNALFD -DUSE_TIMERFD -D_GNU_SOURCE -I. -g -O2
> -fno-strict-aliasing -Wall -Wstrict-prototypes -fPIC
> -DTGT_VERSION=\"\" -DBSDIR=\"/lib/tgt/backing-store\" bs_sheepdog.c -o
> bs_sheepdog.o
> bs_sheepdog.c: In function 'read_write_object':
> bs_sheepdog.c:682: warning: format '%lx' expects type 'long unsigned
> int', but argument 5 has type 'uint64_t'
> bs_sheepdog.c:682: warning: format '%lx' expects type 'long unsigned
> int', but argument 6 has type 'uint64_t'
> 
> This fixes the issue by using PRIx64 length modifier instead of "%lx".
> 
> Signed-off-by: Ryusuke Konishi <[email protected]>
> Cc: Hitoshi Mitake <[email protected]>
> ---
>  usr/bs_sheepdog.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.