Debug information only in debug mode.

This commit is contained in:
Dirk Engling 2009-07-17 15:53:35 +00:00
parent e5f3f71d9a
commit 409ef7dc83
1 changed files with 3 additions and 3 deletions

View File

@ -83,9 +83,9 @@ static void accesslist_readfile( int sig ) {
/* Find start of next line */
while( read_offs < map_end && *(read_offs++) != '\n' );
}
//#ifdef _DEBUG
#ifdef _DEBUG
fprintf( stderr, "Added %d info_hashes to accesslist\n", info_hash - accesslist_new );
//#endif
#endif
mmap_unmap( map, maplen);
@ -156,4 +156,4 @@ int accesslist_isblessed( ot_ip6 ip, ot_permissions permissions ) {
return 0;
}
const char *g_version_accesslist_c = "$Source: /home/cvsroot/opentracker/ot_accesslist.c,v $: $Revision: 1.25 $\n";
const char *g_version_accesslist_c = "$Source: /home/cvsroot/opentracker/ot_accesslist.c,v $: $Revision: 1.26 $\n";