summaryrefslogtreecommitdiff
path: root/intel
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2011-12-20 12:01:19 -0800
committerEric Anholt <eric@anholt.net>2011-12-29 16:43:44 -0800
commit39a06acfbdd834bcd365de08c7c14cfa39b18eab (patch)
tree17bd0493d11ea094107f34daec074095ec2936c6 /intel
parent1db55a80a9f3f74df716c14d3cbfc1507f084221 (diff)
intel: Add printflike warnings for instr_out.
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Acked-by: Eugeni Dodonov <eugeni@dodonov.net>
Diffstat (limited to 'intel')
-rw-r--r--intel/intel_decode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/intel/intel_decode.c b/intel/intel_decode.c
index 1e632954..1b5f858e 100644
--- a/intel/intel_decode.c
+++ b/intel/intel_decode.c
@@ -89,6 +89,10 @@ static float int_as_float(uint32_t intval)
static void
instr_out(uint32_t *data, uint32_t hw_offset, unsigned int index,
+ const char *fmt, ...) __attribute__((format(__printf__, 4, 5)));
+
+static void
+instr_out(uint32_t *data, uint32_t hw_offset, unsigned int index,
const char *fmt, ...)
{
va_list va;