[previous] 0184 [next] [U] Insufficient arguments to satisfy conversion specifier, number %s.
Explicitly undefined REFERENCE - ISO:C90-7.9.6 Formatted input/output functions

There are insufficient arguments to satisfy all the conversion specifiers in this format string.

For example, in the code below, an argument has been supplied for the format specifier "%d" but not for "%f".


/*PRQA S 336,602,1307,2017,3122,3200,3209,3227,3408,3602,3625 ++*/
#include <stdio.h>

extern void foo(int test)
{
    printf("The score for test %d is %f" ,test);                /* Message 0184 */
}


MISRA C:2012 Rules applicable to message 0184:

Rule-1.3  (Required) There shall be no occurrence of undefined or critical unspecified behaviour


QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0
© 2012 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index Contents