xserver/hw/xfree86/x86emu/x86emu
Adam Jackson 15d91df474 x86emu: Teach the debug code about varargs
With -Wformat-nonliteral and a debug build you'd get yelled at here:

../hw/xfree86/x86emu/x86emu/debug.h:188:9: warning: format not a string literal, argument types not checked [-Wformat-nonliteral]

To fix this, rewrite the printf code to actually use varargs and the
appropriate format attribute. All callers of DECODE_PRINTF() pass a
string with no % specifiers, so we pass that as the argument to
printf("%s"). For DECODE_PRINTF2() we just pass the args through.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
2018-01-16 16:08:38 -05:00
..
debug.h x86emu: Teach the debug code about varargs 2018-01-16 16:08:38 -05:00
decode.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
fpu.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
fpu_regs.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
ops.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
prim_asm.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
prim_ops.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
prim_x86_gcc.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
regs.h x86emu: Change include order to avoid conflict with system header 2016-04-29 11:05:38 -04:00
types.h x86emu: Fix type conversion warnings on x86_64 with DEBUG 2017-10-20 13:15:32 -04:00
x86emui.h x86emu: Undefine _NO_INLINE 2014-09-26 15:27:18 -04:00