From 91829a6edb9a9c15b3be696c1322b62210dd34f0 Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Wed, 2 Dec 2009 20:06:37 +0100 Subject: [PATCH] streamline some log levels for invalid servicenames I don't think we need to log the fact that a user gave a wrong sharename in Explorer with the highest log level. The level of this was not very consistent: service.c: DEBUG(3,("find_service() failed to find service %s\n", service)); service.c: DEBUG(0,("%s (%s) couldn't find service %s\n", smb2_tcon.c: DEBUG(1,("smbd_smb2_tree_connect: couldn't find service %s\n", This changes the last two to 3 as the first one. Signed-off-by: Christian Ambach (cherry picked from commit 1ae8145c66bcfc79ce5e554a057b410339868b8f) --- source3/smbd/service.c | 2 +- source3/smbd/smb2_tcon.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/smbd/service.c b/source3/smbd/service.c index b5946f0335c..48593446e2f 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -1193,7 +1193,7 @@ connection_struct *make_connection(struct smbd_server_connection *sconn, return NULL; } - DEBUG(0,("%s (%s) couldn't find service %s\n", + DEBUG(3,("%s (%s) couldn't find service %s\n", get_remote_machine_name(), client_addr(get_client_fd(),addr,sizeof(addr)), service)); diff --git a/source3/smbd/smb2_tcon.c b/source3/smbd/smb2_tcon.c index 7d627c2dfa2..70c5e8845e5 100644 --- a/source3/smbd/smb2_tcon.c +++ b/source3/smbd/smb2_tcon.c @@ -169,7 +169,7 @@ static NTSTATUS smbd_smb2_tree_connect(struct smbd_smb2_request *req, snum = find_service(service); if (snum < 0) { - DEBUG(1,("smbd_smb2_tree_connect: couldn't find service %s\n", + DEBUG(3,("smbd_smb2_tree_connect: couldn't find service %s\n", service)); return NT_STATUS_BAD_NETWORK_NAME; } -- 2.11.4.GIT