summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2010-11-20 18:32:08 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2010-11-20 18:32:08 -0800
commit45d575da032967b8920cf57491b7bd3bcd2991af (patch)
tree7a2e864aff9394b5c03a0a90f929557ed1a6012e
parentd304e315d8143b4fbcb99e8086a6fad0dd051384 (diff)
Add printf attributes to util.c functions
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--utils.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/utils.h b/utils.h
index be2c67c..d624234 100644
--- a/utils.h
+++ b/utils.h
@@ -121,12 +121,12 @@ extern void uFree(
/***====================================================================***/
extern Boolean uSetErrorFile ( const char *name );
-extern void uInformation ( const char *s, ...);
-extern void uAction ( const char *s, ... );
-extern void uWarning ( const char *s, ... );
-extern void uError ( const char *s, ... );
-extern void uFatalError( const char *s,...);
-extern void uInternalError ( const char *s, ... );
+extern void uInformation ( const char *s, ...) _X_ATTRIBUTE_PRINTF(1,2);
+extern void uAction ( const char *s, ... ) _X_ATTRIBUTE_PRINTF(1,2);
+extern void uWarning ( const char *s, ... ) _X_ATTRIBUTE_PRINTF(1,2);
+extern void uError ( const char *s, ... ) _X_ATTRIBUTE_PRINTF(1,2);
+extern void uFatalError( const char *s,...) _X_ATTRIBUTE_PRINTF(1,2);
+extern void uInternalError ( const char *s, ... ) _X_ATTRIBUTE_PRINTF(1,2);
/***====================================================================***/
@@ -176,8 +176,9 @@ extern char *uStringDup(
extern
unsigned int DEBUG_VAR;
-extern void uDebug( const char *s, ... );
-extern void uDebugNOI( const char *s, ... ); /* no indent */
+extern void uDebug( const char *s, ... ) _X_ATTRIBUTE_PRINTF(1,2);
+extern void uDebugNOI( const char *s, ... ) /* no indent */
+ _X_ATTRIBUTE_PRINTF(1,2);
extern Boolean uSetDebugFile(
const char *name
);
@@ -217,7 +218,7 @@ extern int uDebugIndentSize;
extern Boolean uSetEntryFile(
const char *name
);
-extern void uEntry(int l, const char *s, ... );
+extern void uEntry(int l, const char *s, ... ) _X_ATTRIBUTE_PRINTF(2,3);
extern void uExit(
int l, const char *rtVal
);