xserver/hw/xfree86/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
..
x86emu x86emu: Teach the debug code about varargs 2018-01-16 16:08:38 -05:00
Makefile.am
debug.c x86emu: Teach the debug code about varargs 2018-01-16 16:08:38 -05:00
decode.c
fpu.c
meson.build
ops.c
ops2.c
prim_ops.c
sys.c x86emu: Fix type conversion warnings on x86_64 with DEBUG 2017-10-20 13:15:32 -04:00
validate.c
x86emu.h