]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix printf format. The 'L' modifier cannot be used with
authorFlorian Krohm <florian@eich-krohm.de>
Tue, 1 Oct 2013 18:39:55 +0000 (18:39 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Tue, 1 Oct 2013 18:39:55 +0000 (18:39 +0000)
the 'x' format specifier. Use 'll' instead.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13596

memcheck/tests/amd64/more_x87_fp.c

index 1633b5480f1525502a782f8185d4882027729131..f53bf6238bdf94bd374cb32f55e1d5895bfcab8f 100644 (file)
@@ -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 */