From 3be5d2ca5f2a1af97502f5fd0f5b25f382b123c4 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 18 Sep 2009 10:46:07 -0400 Subject: [PATCH] Windows: trace logging changes for smb_ReceiveTran2QPathInfo Add new trace log entries in smb_ReceiveTran2QPathInfo to help track down the reason for queries in which the path and tidPath are both the empty string. LICENSE MIT Reviewed-on: http://gerrit.openafs.org/467 Tested-by: Asanka Herath Reviewed-by: Asanka Herath Tested-by: Jeffrey Altman Reviewed-by: Jeffrey Altman --- src/WINNT/afsd/smb3.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/WINNT/afsd/smb3.c b/src/WINNT/afsd/smb3.c index 14edcec93..10231cdc8 100644 --- a/src/WINNT/afsd/smb3.c +++ b/src/WINNT/afsd/smb3.c @@ -3168,7 +3168,7 @@ long smb_ReceiveTran2QPathInfo(smb_vc_t *vcp, smb_tran2Packet_t *p, smb_packet_t memset(&qpi, 0, sizeof(qpi)); pathp = smb_ParseStringT2Parm(p, (char *) (&p->parmsp[3]), NULL, SMB_STRF_ANSIPATH); - osi_Log2(smb_logp, "T2 QPathInfo type 0x%x path %S", infoLevel, + osi_Log2(smb_logp, "T2 QPathInfo type 0x%x path \"%S\"", infoLevel, osi_LogSaveClientString(smb_logp, pathp)); outp = smb_GetTran2ResponsePacket(vcp, p, opx, 2, responseSize); @@ -3197,12 +3197,16 @@ long smb_ReceiveTran2QPathInfo(smb_vc_t *vcp, smb_tran2Packet_t *p, smb_packet_t code = smb_LookupTIDPath(vcp, p->tid, &tidPathp); if(code) { + osi_Log1(smb_logp, "ReceiveTran2QPathInfo tid path lookup failure 0x%x", code); cm_ReleaseUser(userp); smb_SendTran2Error(vcp, p, opx, CM_ERROR_NOSUCHPATH); smb_FreeTran2Packet(outp); return 0; } + osi_Log1(smb_logp, "T2 QPathInfo tidPathp \"%S\"", + osi_LogSaveClientString(smb_logp, tidPathp)); + /* * XXX Strange hack XXX * -- 2.39.5