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 --- xf86drm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xf86drm.h') diff --git a/xf86drm.h b/xf86drm.h index 5e170f86..c024cc44 100644 --- a/xf86drm.h +++ b/xf86drm.h @@ -704,7 +704,7 @@ extern int drmSLLookupNeighbors(void *l, unsigned long key, extern int drmOpenOnce(void *unused, const char *BusID, int *newlyopened); extern void drmCloseOnce(int fd); -extern void drmMsg(const char *format, ...); +extern void drmMsg(const char *format, ...) DRM_PRINTFLIKE(1, 2); extern int drmSetMaster(int fd); extern int drmDropMaster(int fd); -- cgit v1.2.1