PREfast Warning 270 (Windows CE 5.0)
270 - Format string mismatch.
Additional Information: Missing float argument to <function>.
Recommended Fix: Add a float argument corresponding to conversion specifier <number>.
This warning indicates that not enough arguments are being provided to match a format string; at least one of the missing arguments is a floating-point number. This defect can lead to crashes, as well as potentially incorrect output.
This warning is often reported because of subtle errors contained in format strings such as extra embedded spaces or unescaped percent signs.
If the warning appears to be incorrect, double-check your format string.
PREfast interprets format strings based on the implementations in the C run-time library that is included with Visual C++ .NET 2002.
Example
Defective Source
char buff [25];
sprintf(buff,
"%s %f",
"pi:");
Corrected Source
char buff [25];
sprintf(buff,
"%s %f",
"pi:",
3.1415);
Send Feedback on this topic to the authors