aboutsummaryrefslogtreecommitdiffstats
path: root/epan/emem.h
diff options
context:
space:
mode:
authorKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-10-11 06:22:55 +0000
committerKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-10-11 06:22:55 +0000
commit88186e9b5a4b238dfbc563f65bdd2a088b049e67 (patch)
tree7ab7bbab0ff5b12c50dc143039162c5c29f21aaa /epan/emem.h
parentc39404715970870f82e18e142c0bc4f07dc1eb32 (diff)
Annotate with GNUC_FORMAT_CHECK()
svn path=/trunk/; revision=30489
Diffstat (limited to 'epan/emem.h')
-rw-r--r--epan/emem.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/epan/emem.h b/epan/emem.h
index 6a1d02c08e..d8e3cfaff0 100644
--- a/epan/emem.h
+++ b/epan/emem.h
@@ -468,6 +468,7 @@ emem_strbuf_t *ep_strbuf_truncate(emem_strbuf_t *strbuf, gsize len);
void emem_print_tree(emem_tree_t* emem_tree);
/* #define DEBUG_INTENSE_CANARY_CHECKS */
+
/* Helper to troubleshoot ep memory corruption
* if compiled and the environment variable WIRESHARK_DEBUG_EP_INTENSE_CANARY exists
* it will check the canaries and when found corrupt stop there in the hope
@@ -477,10 +478,11 @@ void emem_print_tree(emem_tree_t* emem_tree);
*/
#ifdef DEBUG_INTENSE_CANARY_CHECKS
-void ep_check_canary_integrity(const char* fmt, ...);
-#define EP_CHECK_CANARY(sprintf_args) ep_check_canary_integrity sprintf_args
+void ep_check_canary_integrity(const char* fmt, ...)
+ GNUC_FORMAT_CHECK(printf, 1, 2);
+#define EP_CHECK_CANARY(args) ep_check_canary_integrity args
#else
-#define EP_CHECK_CANARY(dummy)
+#define EP_CHECK_CANARY(args)
#endif
/**