bsp: xil_printf: Specify attribute(format)
Specify the format attribute for the xil_printf() function to allow the compiler to do printf-style checking of the format string and arguments. Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
This commit is contained in:
parent
ef374e062b
commit
bacc86609f
5 changed files with 5 additions and 5 deletions
|
@ -32,7 +32,7 @@ typedef s32 (*func_ptr)(int c);
|
|||
|
||||
/* */
|
||||
|
||||
void xil_printf( const char8 *ctrl1, ...);
|
||||
void xil_printf( const char8 *ctrl1, ...) __attribute__((format(printf, 1, 2)));
|
||||
void print( const char8 *ptr);
|
||||
extern void outbyte (char8 c);
|
||||
extern char8 inbyte(void);
|
||||
|
|
|
@ -32,7 +32,7 @@ typedef s32 (*func_ptr)(int c);
|
|||
|
||||
/* */
|
||||
|
||||
void xil_printf( const char8 *ctrl1, ...);
|
||||
void xil_printf( const char8 *ctrl1, ...) __attribute__((format(printf, 1, 2)));
|
||||
void print( const char8 *ptr);
|
||||
extern void outbyte (char8 c);
|
||||
extern char8 inbyte(void);
|
||||
|
|
|
@ -32,7 +32,7 @@ typedef s32 (*func_ptr)(int c);
|
|||
|
||||
/* */
|
||||
|
||||
void xil_printf( const char8 *ctrl1, ...);
|
||||
void xil_printf( const char8 *ctrl1, ...) __attribute__((format(printf, 1, 2)));
|
||||
void print( const char8 *ptr);
|
||||
extern void outbyte (char8 c);
|
||||
extern char8 inbyte(void);
|
||||
|
|
|
@ -32,7 +32,7 @@ typedef s32 (*func_ptr)(int c);
|
|||
|
||||
/* */
|
||||
|
||||
void xil_printf( const char8 *ctrl1, ...);
|
||||
void xil_printf( const char8 *ctrl1, ...) __attribute__((format(printf, 1, 2)));
|
||||
void print( const char8 *ptr);
|
||||
extern void outbyte (char8 c);
|
||||
extern char8 inbyte(void);
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
void xil_printf(const char8 *ctrl1, ...);
|
||||
void xil_printf(const char8 *ctrl1, ...) __attribute__((format(printf, 1, 2)));
|
||||
void print(char *ptr);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
Loading…
Add table
Reference in a new issue