From: Christof Schmitt Date: Wed, 5 Aug 2015 20:31:44 +0000 (-0700) Subject: smbd: Log smb2 requests returning !OK with higher log level X-Git-Tag: talloc-2.1.4~437 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ae65b2546cb3d5c7662a37bf336dda38cfb3166;p=thirdparty%2Fsamba.git 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 Reviewed-by: Michael Adam --- diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index a0b1bfc8336..a53ddf8527d 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. */