Microchip Technology XC8 Standard Compiler (Workstation) SW006021-1 SW006021-1 ユーザーズマニュアル

製品コード
SW006021-1
ページ / 518
Error and Warning Messages
 2012 Microchip Technology Inc.
DS52053B-page 403
(327) long long int argument required in printf-style format string 
(Parser)
A long long argument is required for this format specifier. Check the number and 
order of format specifiers and corresponding arguments, for example:
printf("%llx", 2);  // maybe you meant: printf("%llx", 2LL);
Note that MPLAB XC8 does not provide direct support for a long long integer type.
(328) int argument required in printf-style format string 
(Parser)
An integral argument is required for this printf-style format specifier. Check the number 
and order of format specifiers and corresponding arguments, for example:
printf("%d", 1.23); /* wrong number or wrong placeholder */
(329) double argument required in printf-style format string 
(Parser)
The printf format specifier corresponding to this argument is %f or similar, and requires 
a floating-point expression. Check for missing or extra format specifiers or arguments 
to printf.
printf("%f", 44);  /* should be: printf("%f", 44.0); */
(330) pointer to * argument required in printf-style format string 
(Parser)
A pointer argument is required for this format specifier. Check the number and order of 
format specifiers and corresponding arguments.
(331) too few arguments for printf-style format string 
(Parser)
There are too few arguments for this format string. This would result in a garbage value 
being printed or converted at run time, for example:
printf("%d - %d", low);
  /* oops! where is the other value to print? */
(332) "interrupt_level" should be 0 to 7 
(Parser)
The pragma interrupt_level must have an argument from 0 to 7; however, 
mid-range devices only use level 1; PIC18 devices can use levels 1 or 2. For example:
#pragma interrupt_level  9 /* oops -- the level is too high */
void interrupt isr(void)
{
  /* isr code goes here */
}
(333) unrecognized qualifier name after "strings" (Parser)
The pragma strings was passed a qualifier that was not identified, for example:
/* oops -- should that be #pragma strings const ? */
#pragma strings cinst 
(334) unrecognized qualifier name after "printf_check" 
(Parser)
The #pragma printf_check was passed a qualifier that could not be identified, for 
example:
/* oops -- should that be const not cinst? */
#pragma printf_check(printf) cinst
(335) unknown pragma "*" 
(Parser)
An unknown pragma directive was encountered, for example:
#pragma rugsused myFunc w  /* I think you meant regsused */