xfree86/int10: mark printk as _X_ATTRIBUTE_PRINTF
Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
7fe436a7b7
commit
2a93e75ff8
|
@ -39,6 +39,8 @@
|
||||||
#ifndef __X86EMU_REGS_H
|
#ifndef __X86EMU_REGS_H
|
||||||
#define __X86EMU_REGS_H
|
#define __X86EMU_REGS_H
|
||||||
|
|
||||||
|
#include <X11/Xfuncproto.h>
|
||||||
|
|
||||||
/*---------------------- Macros and type definitions ----------------------*/
|
/*---------------------- Macros and type definitions ----------------------*/
|
||||||
|
|
||||||
#ifdef PACK
|
#ifdef PACK
|
||||||
|
@ -337,7 +339,8 @@ extern "C" { /* Use "C" linkage when in C++ mode */
|
||||||
|
|
||||||
/* Function to log information at runtime */
|
/* Function to log information at runtime */
|
||||||
|
|
||||||
void printk(const char *fmt, ...);
|
void printk(const char *fmt, ...)
|
||||||
|
_X_ATTRIBUTE_PRINTF(1, 2);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} /* End of "C" linkage for C++ */
|
} /* End of "C" linkage for C++ */
|
||||||
|
|
Loading…
Reference in New Issue