diff mbox series

[v3,25/46] tests/tcg/i386/test-i386: fix printf format

Message ID 20180424152405.10304-26-alex.bennee@linaro.org
State Superseded
Headers show
Series fix building of tests/tcg | expand

Commit Message

Alex Bennée April 24, 2018, 3:23 p.m. UTC
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>

---
 tests/tcg/i386/test-i386.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.17.0

Comments

Philippe Mathieu-Daudé April 25, 2018, 2:06 p.m. UTC | #1
On 04/24/2018 12:23 PM, Alex Bennée wrote:
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>


Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>


> ---

>  tests/tcg/i386/test-i386.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/tests/tcg/i386/test-i386.c b/tests/tcg/i386/test-i386.c

> index caef4da176..a29b41e764 100644

> --- a/tests/tcg/i386/test-i386.c

> +++ b/tests/tcg/i386/test-i386.c

> @@ -2258,7 +2258,7 @@ SSE_OP(a ## sd);

>          "pop %0\n"\

>          : "=rm" (eflags)\

>          : "x" (a.dq), "x" (b.dq));\

> -    printf("%-9s: a=%f b=%f cc=%04x\n",\

> +    printf("%-9s: a=%f b=%f cc=%04lx\n",\

>             #op, a1, b1,\

>             eflags & (CC_C | CC_P | CC_Z | CC_S | CC_O | CC_A));\

>  }

>
diff mbox series

Patch

diff --git a/tests/tcg/i386/test-i386.c b/tests/tcg/i386/test-i386.c
index caef4da176..a29b41e764 100644
--- a/tests/tcg/i386/test-i386.c
+++ b/tests/tcg/i386/test-i386.c
@@ -2258,7 +2258,7 @@  SSE_OP(a ## sd);
         "pop %0\n"\
         : "=rm" (eflags)\
         : "x" (a.dq), "x" (b.dq));\
-    printf("%-9s: a=%f b=%f cc=%04x\n",\
+    printf("%-9s: a=%f b=%f cc=%04lx\n",\
            #op, a1, b1,\
            eflags & (CC_C | CC_P | CC_Z | CC_S | CC_O | CC_A));\
 }