smbd: Use new debug macros in kill-client-ip
authorChristof Schmitt <cs@samba.org>
Tue, 9 Jun 2015 20:10:27 +0000 (13:10 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 11 Jun 2015 02:34:50 +0000 (04:34 +0200)
Mainly to have the new macros actually used in the code.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jun 11 04:34:50 CEST 2015 on sn-devel-104

source3/smbd/process.c

index 72135a2c0bfcc3583a0413083ff692774728ad83..958c82b429bdc5a93fd8fb234d9c77791e34a1a6 100644 (file)
@@ -2711,7 +2711,7 @@ static void msg_kill_client_ip(struct messaging_context *msg_ctx,
        const char *ip = (char *) data->data;
        char *client_ip;
 
-       DEBUG(10, ("Got kill request for client IP %s\n", ip));
+       DBG_DEBUG("Got kill request for client IP %s\n", ip);
 
        client_ip = tsocket_address_inet_addr_string(sconn->remote_address,
                                                     talloc_tos());
@@ -2720,8 +2720,8 @@ static void msg_kill_client_ip(struct messaging_context *msg_ctx,
        }
 
        if (strequal(ip, client_ip)) {
-               DEBUG(1, ("Got kill client message for %s - "
-                         "exiting immediately\n", ip));
+               DBG_WARNING("Got kill client message for %s - "
+                           "exiting immediately\n", ip);
                exit_server_cleanly("Forced disconnect for client");
        }