[lustre-devel] linux-4.5/drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c:880: wrong % specifier ?

Simmons, James A. simmonsja at ornl.gov
Thu Mar 17 09:52:37 PDT 2016


>Hello there,
>
>----------------------------------------
>>  so I suspect there are a large number of such warnings that need to be repaired.
>
>About a dozen:
>
>$ fgrep "(warning)" cppcheck.45.all.out | fgrep /lustre/ | fgrep "in format string" | sort | uniq | more
>[linux-4.5/drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c:880]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
...
>The messages are generated by cppcheck, a static analysis tool, not gcc.

What version of cppcheck and what flags did you use? I attempted to scan for these errors and they didn't show up.


More information about the lustre-devel mailing list