Mismatching printf format strings and arguments
Bug #1863088 reported by
Karl Vestin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EPICS Base |
New
|
Undecided
|
Unassigned |
Bug Description
Codacy reports a nuber of warning level issues on cases where the format string of a printf does not match the types of the actual arguments. Most commonly the mismatch is signed vs unsigned integers.
Patterns;
%i in format string (no. 1) requires 'int' but the argument type is Unknown. (cppcheck)
%u in format string (no. 1) requires 'unsigned int' but the argument type is Unknown. (cppcheck)
%d in format string (no. 1) requires 'int *' but the argument type is Unknown. (cppcheck)
To post a comment you must log in.