summaryrefslogtreecommitdiff
path: root/intel
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-01-22 12:06:51 +0100
committerThierry Reding <treding@nvidia.com>2014-04-17 16:21:40 +0200
commit44b08c0ddf7ced99a5914421f18b269a1dcaafae (patch)
tree606eddc88e391a7c1f32f9c2c2cec162ceab6cd3 /intel
parent7974b539d2b46167972b9109046a45dbe852ae4c (diff)
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 'intel')
-rw-r--r--intel/intel_decode.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/intel/intel_decode.c b/intel/intel_decode.c
index c0a0cafc..61239dd9 100644
--- a/intel/intel_decode.c
+++ b/intel/intel_decode.c
@@ -29,6 +29,7 @@
#include <stdarg.h>
#include <string.h>
+#include "xf86drm.h"
#include "intel_chipset.h"
#include "intel_bufmgr.h"
@@ -104,11 +105,7 @@ static float int_as_float(uint32_t intval)
return uval.f;
}
-static void
-instr_out(struct drm_intel_decode *ctx, unsigned int index,
- const char *fmt, ...) __attribute__((format(__printf__, 3, 4)));
-
-static void
+static void DRM_PRINTFLIKE(3, 4)
instr_out(struct drm_intel_decode *ctx, unsigned int index,
const char *fmt, ...)
{