[Intel-gfx] [PATCH 09/13] intel: Add printflike warnings for instr_out.

Eric Anholt eric at anholt.net
Wed Dec 21 19:09:39 CET 2011


---
 intel/intel_decode.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/intel/intel_decode.c b/intel/intel_decode.c
index 1e63295..1b5f858 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;
-- 
1.7.7.3




More information about the Intel-gfx mailing list