[Qemu-devel] [PATCH v3 25/46] tests/tcg/i386/test-i386: fix printf format

Alex Bennée posted 46 patches 7 years, 6 months ago
There is a newer version of this series
[Qemu-devel] [PATCH v3 25/46] tests/tcg/i386/test-i386: fix printf format
Posted by Alex Bennée 7 years, 6 months ago
Signed-off-by: Alex Bennée <alex.bennee@linaro.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));\
 }
-- 
2.17.0


Re: [Qemu-devel] [PATCH v3 25/46] tests/tcg/i386/test-i386: fix printf format
Posted by Philippe Mathieu-Daudé 7 years, 6 months ago
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));\
>  }
>