aboutsummaryrefslogtreecommitdiffstats
path: root/epan/emem.c
diff options
context:
space:
mode:
authorKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-10-08 13:24:03 +0000
committerKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-10-08 13:24:03 +0000
commitef48a237edc724ca01008b152fb63be0a76d323e (patch)
tree8f8153bef63e8c67a4d8a0138a6810792531f012 /epan/emem.c
parenta9ed97b3444d07046a375096fd617473e3b9a1a7 (diff)
downloadwireshark-ef48a237edc724ca01008b152fb63be0a76d323e.tar.gz
wireshark-ef48a237edc724ca01008b152fb63be0a76d323e.tar.bz2
wireshark-ef48a237edc724ca01008b152fb63be0a76d323e.zip
Remove debug g_warning()
svn path=/trunk/; revision=30399
Diffstat (limited to 'epan/emem.c')
-rw-r--r--epan/emem.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/emem.c b/epan/emem.c
index 04c1f458bf..2c75a27de2 100644
--- a/epan/emem.c
+++ b/epan/emem.c
@@ -283,7 +283,6 @@ se_init_chunk(void)
se_debug_use_chunks = (gboolean) (!getenv("WIRESHARK_DEBUG_SE_NO_CHUNKS"));
se_debug_use_canary = (gboolean) (getenv("WIRESHARK_DEBUG_SE_USE_CANARY"));
- g_warning("se_debug_use_canary %u",se_debug_use_canary);
if (se_debug_use_canary)
emem_canary(se_canary);
@@ -538,7 +537,7 @@ emem_create_chunk(emem_chunk_t **free_list, gboolean use_canary) {
if(npc->buf == NULL) {
THROW(OutOfMemoryError);
}
-#ifdef SHOW_EMEM_STATS
+#ifdef SHOW_EMEM_STATS
total_no_chunks++;
#endif
buf_end = npc->buf + EMEM_PACKET_CHUNK_SIZE;
@@ -565,7 +564,7 @@ emem_create_chunk(emem_chunk_t **free_list, gboolean use_canary) {
THROW(OutOfMemoryError);
}
buf_end = npc->buf + EMEM_PACKET_CHUNK_SIZE;
-#ifdef SHOW_EMEM_STATS
+#ifdef SHOW_EMEM_STATS
total_no_chunks++;
#endif
/* Align our guard pages on page-sized boundaries */
@@ -586,7 +585,7 @@ emem_create_chunk(emem_chunk_t **free_list, gboolean use_canary) {
if(npc->buf == NULL) {
THROW(OutOfMemoryError);
}
-#ifdef SHOW_EMEM_STATS
+#ifdef SHOW_EMEM_STATS
total_no_chunks++;
#endif
npc->amount_free_init = EMEM_PACKET_CHUNK_SIZE;