diff options
author | Eric Anholt <eric@anholt.net> | 2011-12-20 12:01:19 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2011-12-29 16:43:44 -0800 |
commit | 39a06acfbdd834bcd365de08c7c14cfa39b18eab (patch) | |
tree | 17bd0493d11ea094107f34daec074095ec2936c6 | |
parent | 1db55a80a9f3f74df716c14d3cbfc1507f084221 (diff) |
intel: Add printflike warnings for instr_out.
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Eugeni Dodonov <eugeni@dodonov.net>
-rw-r--r-- | 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 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; |