aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Reding2014-01-22 05:06:51 -0600
committerThierry Reding2014-04-17 09:21:40 -0500
commit44b08c0ddf7ced99a5914421f18b269a1dcaafae (patch)
tree606eddc88e391a7c1f32f9c2c2cec162ceab6cd3 /xf86drm.h
parent7974b539d2b46167972b9109046a45dbe852ae4c (diff)
downloadexternal-libdrm-44b08c0ddf7ced99a5914421f18b269a1dcaafae.tar.gz
external-libdrm-44b08c0ddf7ced99a5914421f18b269a1dcaafae.tar.xz
external-libdrm-44b08c0ddf7ced99a5914421f18b269a1dcaafae.zip
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 <eric@anholt.net> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'xf86drm.h')
-rw-r--r--xf86drm.h2
1 files changed, 1 insertions, 1 deletions
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,
704 704
705extern int drmOpenOnce(void *unused, const char *BusID, int *newlyopened); 705extern int drmOpenOnce(void *unused, const char *BusID, int *newlyopened);
706extern void drmCloseOnce(int fd); 706extern void drmCloseOnce(int fd);
707extern void drmMsg(const char *format, ...); 707extern void drmMsg(const char *format, ...) DRM_PRINTFLIKE(1, 2);
708 708
709extern int drmSetMaster(int fd); 709extern int drmSetMaster(int fd);
710extern int drmDropMaster(int fd); 710extern int drmDropMaster(int fd);