]> git.dujemihanovic.xyz Git - linux.git/commit
[media] tw686x: silent -Wformat-security warning
authorNicolas Iooss <nicolas.iooss_linux@m4x.org>
Sat, 26 Nov 2016 19:43:50 +0000 (17:43 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 3 Feb 2017 09:20:19 +0000 (07:20 -0200)
commit92fbeb40b132f5b2ec335f644ba563a1a85ffd8b
tree6b57f072a4d564065c1387f70fcff14d6e285512
parent062c5fff31be2e5324067859ef24a748f59ca029
[media] tw686x: silent -Wformat-security warning

Using sprintf() with a non-literal string makes some compiler complain
when building with -Wformat-security (eg. clang reports "format string
is not a string literal (potentially insecure)").

Here sprintf() format parameter is indirectly a literal string so there
is no security issue.  Nevertheless adding a "%s" format string to
silent the warning helps to detect real bugs in the kernel.

Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/tw686x/tw686x-core.c