From: Florian Krohm Date: Tue, 1 Oct 2013 18:39:55 +0000 (+0000) Subject: Fix printf format. The 'L' modifier cannot be used with X-Git-Tag: svn/VALGRIND_3_9_0~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a135d54dabc945077b2818e67f3049522d3269f2;p=thirdparty%2Fvalgrind.git Fix printf format. The 'L' modifier cannot be used with the 'x' format specifier. Use 'll' instead. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13596 --- diff --git a/memcheck/tests/amd64/more_x87_fp.c b/memcheck/tests/amd64/more_x87_fp.c index 1633b5480f..f53bf6238b 100644 --- a/memcheck/tests/amd64/more_x87_fp.c +++ b/memcheck/tests/amd64/more_x87_fp.c @@ -106,8 +106,8 @@ void test_fcvt(double a) la = a; printf("(float)%e = %e\n", a, fa); printf("(long double)%f = %Lf\n", a, la); - printf("a=%016Lx\n", *(long long *)&a); - printf("la=%016Lx %04x\n", *(long long *)&la, + printf("a=%016llx\n", *(long long *)&a); + printf("la=%016llx %04x\n", *(long long *)&la, *(unsigned short *)((char *)(&la) + 8)); /* test all roundings */