[PATCH:xfs 2/4] Add _X_ATTRIBUTE_PRINTF to error reporting functions

Alan Coopersmith alan.coopersmith at oracle.com
Sat Sep 17 01:03:24 PDT 2011


Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 include/os.h |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/include/os.h b/include/os.h
index 58238ec..e07d4e0 100644
--- a/include/os.h
+++ b/include/os.h
@@ -53,6 +53,7 @@ typedef struct _alt_server *AlternateServerPtr;
 typedef struct _auth *AuthPtr;
 
 #include <X11/fonts/FSproto.h>
+#include <X11/Xfuncproto.h>
 #include "client.h"
 #include "misc.h"
 
@@ -98,9 +99,9 @@ extern	void	DetachStdio(void);
 extern void	Error(const char *str);
 extern void	InitErrors(void);
 extern void	CloseErrors(void);
-extern void	NoticeF(const char *f, ...);
-extern void	ErrorF(const char * f, ...);
-extern void	FatalError(const char* f, ...);
+extern void	NoticeF(const char *f, ...) _X_ATTRIBUTE_PRINTF(1, 2);
+extern void	ErrorF(const char * f, ...) _X_ATTRIBUTE_PRINTF(1, 2);
+extern void	FatalError(const char* f, ...) _X_ATTRIBUTE_PRINTF(1, 2);
 
 /* os/io.c */
 extern	Bool	InsertFakeRequest(ClientPtr client, char *data, int count);
-- 
1.7.3.2



More information about the xorg-devel mailing list