From 44b08c0ddf7ced99a5914421f18b269a1dcaafae Mon Sep 17 00:00:00 2001 From: Thierry Reding Date: Wed, 22 Jan 2014 12:06:51 +0100 Subject: Mark functions printf-like where possible These functions all take a format string and either a list of variable arguments or a va_list. Use the new DRM_PRINTFLIKE macro to tell the compiler about it so that the arguments can be checked against the format string. Reviewed-by: Eric Anholt Signed-off-by: Thierry Reding --- tests/drmstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/drmstat.c b/tests/drmstat.c index 345b8d2c..c51cbc6c 100644 --- a/tests/drmstat.c +++ b/tests/drmstat.c @@ -425,7 +425,7 @@ int main(int argc, char **argv) return r; } -void +void DRM_PRINTFLIKE(4, 0) xf86VDrvMsgVerb(int scrnIndex, int type, int verb, const char *format, va_list args) { -- cgit v1.2.3