diff options
author | Nicolas Iooss <nicolas.iooss_linux@m4x.org> | 2017-03-31 22:25:07 +0300 |
---|---|---|
committer | Benjamin Gaignard <benjamin.gaignard@linaro.org> | 2017-05-09 15:45:24 +0300 |
commit | adea1db2ad3c8a26ffd5b39196b3b376dc861b82 (patch) | |
tree | b73441f47af2d3190df4685b82986d2c5824d388 /drivers/gpu/drm/sti/sti_hda.c | |
parent | 45c3d213a400c952ab7119f394c5293bb6877e6b (diff) | |
download | linux-adea1db2ad3c8a26ffd5b39196b3b376dc861b82.tar.xz |
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 <nicolas.iooss_linux@m4x.org>
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170331192507.20538-1-nicolas.iooss_linux@m4x.org
Diffstat (limited to 'drivers/gpu/drm/sti/sti_hda.c')
0 files changed, 0 insertions, 0 deletions