[PATCH] IRIX format string checking

James Peach jpeach at sgi.com
Fri Feb 6 04:24:23 GMT 2004


Hi all,

The following diff adds printf format checking for all those using the
MIPSPro compilers. Hopefully it will save someone else my last 30mins ..

cheers

--
James Peach | jpeach at sgi.com | SGI Australian Software Group
I don't speak for SGI.

--- samba3-cvs/samba/source/include/debug.h     Fri Feb  6 15:18:46 2004
+++ /home/jpeach/isms/samba3/src/source/include/debug.h Fri Feb  6 15:16:57 2004
@@ -35,8 +35,11 @@
 /* I know the __attribute__ stuff is ugly, but it does ensure we get the 
    arguemnts to DEBUG() right. We have got them wrong too often in the 
    past.
+   The PRINTFLIKE comment does the equivalent for SGI MIPSPro.
  */
+/* PRINTFLIKE1 */
 int  Debug1( const char *, ... ) PRINTF_ATTRIBUTE(1,2);
+/* PRINTFLIKE1 */
 BOOL dbgtext( const char *, ... ) PRINTF_ATTRIBUTE(1,2);
 BOOL dbghdr( int level, const char *file, const char *func, int line );



More information about the samba-technical mailing list