OSDN Git Service

Mark debug_print with __attribute__ ((format(__printf__, 1, 0)))
authorKeith Packard <keithp@keithp.com>
Sun, 12 Jan 2014 18:32:57 +0000 (10:32 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 13 Jan 2014 18:13:42 +0000 (10:13 -0800)
commitcb4bc8ead63cb213a26bcc8d14b2b44d9fb967da
treea0bf658d642f42a2df547f9a7c423964f8f6999b
parent8279c8fb498785ea2700c6cc4a3456d7e1134665
Mark debug_print with __attribute__ ((format(__printf__, 1, 0)))

the drmServerInfo member, debug_print, takes a printf format string
and varargs list. Tell the compiler about it.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
xf86drm.h