Details
-
Bug
-
Resolution: Fixed
-
Trivial
-
None
-
None
-
Ubuntu 15.04, cppcheck static anaysis + GCC 4.9.2
-
3
-
9223372036854775807
Description
Static analysis with cppcheck found the following issue in lustre/tests/flock.c:
Checking lustre/tests/flock.c...
[lustre/tests/flock.c:178]: (warning) printf format string requires 0 parameters but 1 is given.
fd = open(file, O_RDWR|O_CREAT, (mode_t)0666);
if (fd < 0)
The %m prints strerror(errno), but there is no %s specifier for the file. I believe a modern version GCC will flag this with a warning too.
Landed for 2.8