]> git.ipfire.org Git - thirdparty/kmod.git/commit
Add format attribute and fix issues
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Sun, 21 Apr 2013 19:16:18 +0000 (16:16 -0300)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Sun, 21 Apr 2013 19:17:12 +0000 (16:17 -0300)
commit1958af88a2078970cc0b4281cdfef16fe54071b6
tree28ed9b758760991606655ed0e1f52ae392afc6bd
parent19ac5bd8a00395945a4e34d12ea756d744cce909
Add format attribute and fix issues

Add __attribute__((format)) to log_filep() and _show() functions, fixing
the bugs they found in the source code.

For functions that receive va_list instead of being variadic functions
we put 0 in the last argument, so at least the string is checked and we
get warnings of -Wformat-nonliteral type. So, it's better than adding a
pragma here to shut up the warning.
libkmod/libkmod.c
tools/depmod.c
tools/log.c
tools/log.h
tools/modprobe.c