On Tue, Oct 29, 2013 at 1:38 AM, Khem Raj raj.k...@gmail.com wrote:
On Fri, Oct 25, 2013 at 12:17 PM, Yang Shi yang@windriver.com wrote:
On MIPS64, __u64 is unsigned long type, so the %llu specifier will
cause
build error on MIPS64.
Convert __u64 to unsigned long long in those sprintf
On 13-10-29 05:28 AM, Hans Beckérus wrote:
On Tue, Oct 29, 2013 at 1:38 AM, Khem Raj raj.k...@gmail.com wrote:
On Fri, Oct 25, 2013 at 12:17 PM, Yang Shi yang@windriver.com wrote:
On MIPS64, __u64 is unsigned long type, so the %llu specifier will cause
build error on MIPS64.
Convert __u64
On 10/28/2013 5:38 PM, Khem Raj wrote:
On Fri, Oct 25, 2013 at 12:17 PM, Yang Shi yang@windriver.com wrote:
On MIPS64, __u64 is unsigned long type, so the %llu specifier will cause
build error on MIPS64.
Convert __u64 to unsigned long long in those sprintf calls to avoid the build
error.
On Fri, Oct 25, 2013 at 12:17 PM, Yang Shi yang@windriver.com wrote:
On MIPS64, __u64 is unsigned long type, so the %llu specifier will cause
build error on MIPS64.
Convert __u64 to unsigned long long in those sprintf calls to avoid the build
error.
Signed-off-by: Yang Shi
On MIPS64, __u64 is unsigned long type, so the %llu specifier will cause
build error on MIPS64.
Convert __u64 to unsigned long long in those sprintf calls to avoid the build
error.
Signed-off-by: Yang Shi yang@windriver.com
---
tools/perf/tests/attr.c | 20
Wouldn't it be better to change %llu to PRIu64 (from inttypes.h)?
Notice that PRIu32 is already used in places.
You can use string catenation where necessary, e.g.
%s/event-%d- PRIu64 -%d
On 10/25/13 12:17 PM, Yang Shi yang@windriver.com wrote:
On MIPS64, __u64 is unsigned long type, so
I guess for that example, you have to add % yourself
%s/event-%d-% PRIu64 -%d
but for all the WRITE_ASS examples, simply replace llu with PRIu64
On 10/25/13 1:11 PM, Billie Alsup billie.al...@ericsson.com wrote:
Wouldn't it be better to change %llu to PRIu64 (from inttypes.h)?
Notice that
On 10/25/2013 1:14 PM, Billie Alsup wrote:
I guess for that example, you have to add % yourself
%s/event-%d-% PRIu64 -%d
but for all the WRITE_ASS examples, simply replace llu with PRIu64
Thanks for the suggestion. I had a try, but it failed to build for x86_64.
| tests/attr.c:74:4: error: