diff options
| author | Nicolas Iooss <[email protected]> | 2017-03-31 19:25:07 +0000 |
|---|---|---|
| committer | Benjamin Gaignard <[email protected]> | 2017-05-09 12:45:24 +0000 |
| commit | adea1db2ad3c8a26ffd5b39196b3b376dc861b82 (patch) | |
| tree | b73441f47af2d3190df4685b82986d2c5824d388 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | drm: Nerf the preclose callback for modern drivers (diff) | |
| download | kernel-adea1db2ad3c8a26ffd5b39196b3b376dc861b82.tar.gz kernel-adea1db2ad3c8a26ffd5b39196b3b376dc861b82.zip | |
drm/sti: use seq_puts to display a string
gdp_dbg_ctl() uses seq_printf() to display a color format name even
though there is no format string. When using -Wformat-string, gcc
reports the following warning:
drivers/gpu/drm/sti/sti_gdp.c: In function 'gdp_dbg_ctl':
drivers/gpu/drm/sti/sti_gdp.c:150:18: warning: format not a string
literal and no format arguments [-Wformat-security]
seq_printf(s, gdp_format_to_str[i].name);
^~~~~~~~~~~~~~~~~
Silence this warning by using seq_puts() instead.
Signed-off-by: Nicolas Iooss <[email protected]>
Signed-off-by: Benjamin Gaignard <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
