]> arthur.barton.de Git - ngircd-alex.git/commit
remove unneeded LOG_DEBUG when not compiling with DEBUG support
authorFlorian Westphal <fw@strlen.de>
Fri, 9 Jan 2009 23:44:34 +0000 (00:44 +0100)
committerFlorian Westphal <fw@strlen.de>
Fri, 9 Jan 2009 23:54:07 +0000 (00:54 +0100)
commit1c7b9dbe931ecbb0f355ab66c9b422f7e6001058
tree27ab96c73e012dda2364c62ce4988855504636e0
parent0acef7c598765e4cd786b875395c6601f7e41a19
remove unneeded LOG_DEBUG when not compiling with DEBUG support

when ngircd is build without DEBUG enabled, LOG_DEBUG messages
are always discarded.

To avoid the extra code, ngircd has a LogDebug() wrapper which
gets removed by the compiler when compiling without DEBUG defined.

Update a few functings which were using the
Log(LOG_DEBUG, .. interface directly without #ifdef DEBUG guards.

   text    data     bss     dec     hex filename
 127748    1900   28280  157928   268e8 ngircd.before
 126836    1896   28280  157012   26554 ngircd.after
src/ngircd/channel.c
src/ngircd/client.c
src/ngircd/irc-login.c
src/ngircd/irc-mode.c
src/ngircd/ngircd.c
src/ngircd/parse.c
src/ngircd/resolve.c