summaryrefslogtreecommitdiff
path: root/source3/include/debug.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-04-28 13:49:34 +0000
committerAndrew Tridgell <tridge@samba.org>2001-04-28 13:49:34 +0000
commitd095b5249cf9e1496ad5a3d6b5acb77af2c587a7 (patch)
treecc944131907e5244c9f72c80adb6e478ed36bbb8 /source3/include/debug.h
parent944aeb7de472e0654561f7d8f37a5703487a973e (diff)
downloadsamba-d095b5249cf9e1496ad5a3d6b5acb77af2c587a7.tar.gz
samba-d095b5249cf9e1496ad5a3d6b5acb77af2c587a7.tar.bz2
samba-d095b5249cf9e1496ad5a3d6b5acb77af2c587a7.zip
- added test for vasprintf
- cleaned up GNUC printf attribute macros - added enum handling in mkproto - removed non-vararg code - made slprintf and vslprintf just macros for snprintf and vsnprintf - don't need slprintf code any more (This used to be commit c7aeb2254dfc3cd0aa0b6c0bdd426f9323be0ddf)
Diffstat (limited to 'source3/include/debug.h')
-rw-r--r--source3/include/debug.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/source3/include/debug.h b/source3/include/debug.h
index d2c3b1d37e..240da0d6fc 100644
--- a/source3/include/debug.h
+++ b/source3/include/debug.h
@@ -37,21 +37,8 @@
arguemnts to DEBUG() right. We have got them wrong too often in the
past.
*/
-#ifdef HAVE_STDARG_H
-int Debug1( char *, ... )
-#ifdef __GNUC__
- __attribute__ ((format (__printf__, 1, 2)))
-#endif
-;
-BOOL dbgtext( char *, ... )
-#ifdef __GNUC__
- __attribute__ ((format (__printf__, 1, 2)))
-#endif
-;
-#else
-int Debug1();
-BOOL dbgtext();
-#endif
+int Debug1( char *, ... ) PRINTF_ATTRIBUTE(1,2);
+BOOL dbgtext( char *, ... ) PRINTF_ATTRIBUTE(1,2);
/* If we have these macros, we can add additional info to the header. */
#ifdef HAVE_FILE_MACRO