Re: [PATCH] perf: fix building warning on ARM 32.

2014-12-15 Thread Wang Nan
On 2014/12/16 12:49, Namhyung Kim wrote: > Hi Wang, > > On Tue, Dec 16, 2014 at 10:10:10AM +0800, Wang Nan wrote: >> Commit 85c116a6c introduces asprintf() call and matches '%ld' to a u64 >> argument, which is incorrect on ARM. >> >>CC /home/wn/util/srcline.o >> util/srcline.c: In funct

Re: [PATCH] perf: fix building warning on ARM 32.

2014-12-15 Thread Namhyung Kim
Hi Wang, On Tue, Dec 16, 2014 at 10:10:10AM +0800, Wang Nan wrote: > Commit 85c116a6c introduces asprintf() call and matches '%ld' to a u64 > argument, which is incorrect on ARM. > >CC /home/wn/util/srcline.o > util/srcline.c: In function 'get_srcline': > util/srcline.c:297:6: error:

[PATCH] perf: fix building warning on ARM 32.

2014-12-15 Thread Wang Nan
Commit 85c116a6c introduces asprintf() call and matches '%ld' to a u64 argument, which is incorrect on ARM. CC /home/wn/util/srcline.o util/srcline.c: In function 'get_srcline': util/srcline.c:297:6: error: format '%ld' expects argument of type 'long int', but argument 4 has type 'u64'