[Intel-gfx] [PATCH 1/2] drm/i915: Use __printf markup to silence compiler
Joonas Lahtinen
joonas.lahtinen at linux.intel.com
Mon Jan 16 11:51:44 UTC 2017
On la, 2017-01-14 at 10:51 +0000, Chris Wilson wrote:
> drivers/gpu/drm/i915/i915_gpu_error.c: In function ‘i915_error_vprintf’:
> drivers/gpu/drm/i915/i915_gpu_error.c:137:3: warning:
> function might be possible candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format]
> len = vsnprintf(NULL, 0, f, tmp);
> ^~~
> drivers/gpu/drm/i915/i915_gpu_error.c:144:2: warning:
> function might be possible candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format]
> len = vsnprintf(e->buf + e->bytes, e->size - e->bytes, f, args);
> ^~~
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Regards, Joonas
--
Joonas Lahtinen
Open Source Technology Center
Intel Corporation
More information about the Intel-gfx
mailing list