[PATCH] smbd: Log smb2 requests returning !OK with higher log level
Christof Schmitt
cs at samba.org
Wed Aug 5 21:19:50 UTC 2015
From 96d370cce2a7f87e463d52a3aa3a310b3b0f291d Mon Sep 17 00:00:00 2001
From: Christof Schmitt <cs at samba.org>
Date: Wed, 5 Aug 2015 13:31:44 -0700
Subject: [PATCH] smbd: Log smb2 requests returning !OK with higher log level
This can be useful for narrowing down problems without taking a full
level 10 trace.
Signed-off-by: Christof Schmitt <cs at samba.org>
---
source3/smbd/smb2_server.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c
index a0b1bfc..a53ddf8 100644
--- a/source3/smbd/smb2_server.c
+++ b/source3/smbd/smb2_server.c
@@ -2790,9 +2790,9 @@ NTSTATUS smbd_smb2_request_error_ex(struct smbd_smb2_request *req,
uint8_t *outhdr = SMBD_SMB2_OUT_HDR_PTR(req);
size_t unread_bytes = smbd_smb2_unread_bytes(req);
- DEBUG(10,("smbd_smb2_request_error_ex: idx[%d] status[%s] |%s| at %s\n",
- req->current_idx, nt_errstr(status), info ? " +info" : "",
- location));
+ DBG_NOTICE("smbd_smb2_request_error_ex: idx[%d] status[%s] |%s| "
+ "at %s\n", req->current_idx, nt_errstr(status),
+ info ? " +info" : "", location);
if (unread_bytes) {
/* Recvfile error. Drain incoming socket. */
--
1.7.1
More information about the samba-technical
mailing list