fixed debug logging
authorFelix Morgner <felix.morgner@gmail.com>
Fri, 6 Feb 2015 12:24:26 +0000 (13:24 +0100)
committerFelix Morgner <felix.morgner@gmail.com>
Fri, 6 Feb 2015 12:24:26 +0000 (13:24 +0100)
src/ban.c

index 4cc63181737229278dd7b06dc1cfbbcbf29ff76a..c7ed670631273e616d8a2555b4050489a892256a 100644 (file)
--- a/src/ban.c
+++ b/src/ban.c
@@ -107,9 +107,10 @@ void Ban_pruneBanned()
        list_iterate(itr, &banlist) {
                ban = list_get_entry(itr, ban_t, node);
 #ifdef DEBUG
+               char hexhash[41];
                SSLi_hash2hex(ban->hash, hexhash);
                Log_debug("BL: User %s Reason: '%s' Hash: %s IP: %s Time left: %d",
-                       ban->name, ban->reason, hexhash, Util_addressToString(&ban->address)),
+                       ban->name, ban->reason, hexhash, Util_addressToString(&ban->address),
                        ban->time + ban->duration - time(NULL));
 #endif
                /* Duration of 0 = forever */