summaryrefslogtreecommitdiff
path: root/tools/intel_gem_info.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2017-11-21 20:08:35 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2017-11-29 15:32:57 +0200
commit2015d6d1e7e8633cd143743026aae9f242bbcbfa (patch)
treec395fc4d62aa27e4361dbb0893cf80491d8366be /tools/intel_gem_info.c
parent643dc097156fa9a0ab9286c7c159459cfbe3079e (diff)
tools/intel_watermark: Silence gcc7 snprintf() warnings
Bump the snprintf() buffer size to 32 bytes to silence gcc. intel_watermark.c:203:57: warning: ‘%c’ directive output may be truncated writing 1 byte into a region of size between 0 and 9 [-Wformat-truncation=] snprintf(reg_name, sizeof(reg_name), "PLANE_WM_%1d_%c_%1d", ^~ intel_watermark.c:203:43: note: directive argument in the range [0, 8] snprintf(reg_name, sizeof(reg_name), "PLANE_WM_%1d_%c_%1d", ^~~~~~~~~~~~~~~~~~~~~ etc. Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com> Reported-by: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Tested-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tools/intel_gem_info.c')
0 files changed, 0 insertions, 0 deletions