xserver-multidpi/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
debug.c x86emu: Teach the debug code about varargs 2018-01-16 16:08:38 -05:00
decode.c Avoid conflicts with Solaris <sys/regset.h> defines that clash with our names 2013-11-12 21:03:53 +09:00
fpu.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
Makefile.am Replace INCLUDES with AM_CPPFLAGS 2013-08-06 13:08:13 +10:00
meson.build Add a Meson build system alongside autotools. 2017-04-26 15:25:27 -07:00
ops.c x86emu: Squash a warning 2015-12-07 17:05:39 -05:00
ops2.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
prim_ops.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
sys.c x86emu: Fix type conversion warnings on x86_64 with DEBUG 2017-10-20 13:15:32 -04:00
validate.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
x86emu.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00