From: Jeffrey Altman Date: Fri, 1 Aug 2008 22:03:30 +0000 (+0000) Subject: DEVEL15-windows-smb-dumpvars-20080801 X-Git-Tag: openafs-devel-1_5_52~44 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=7cd6bb2781046ab74fe05d9860458c5f565e1a88;p=packages%2Fo%2Fopenafs.git DEVEL15-windows-smb-dumpvars-20080801 LICENSE MIT When dumping the smb data structs, report flags in hex and paths are now wchar_t strings. (cherry picked from commit 0c0b89e04627cc43ab3e31c607be4470292a1d0a) --- diff --git a/src/WINNT/afsd/smb.c b/src/WINNT/afsd/smb.c index 5e8c79a54..4b9df7fd4 100644 --- a/src/WINNT/afsd/smb.c +++ b/src/WINNT/afsd/smb.c @@ -9913,7 +9913,7 @@ int smb_DumpVCP(FILE *outputFile, char *cookie, int lock) { smb_fid_t *fidp; - sprintf(output, "%s vcp=0x%p, refCount=%d, flags=%d, vcID=%d, lsn=%d, uidCounter=%d, tidCounter=%d, fidCounter=%d\r\n", + sprintf(output, "%s vcp=0x%p, refCount=%d, flags=0x%x, vcID=%d, lsn=%d, uidCounter=%d, tidCounter=%d, fidCounter=%d\r\n", cookie, vcp, vcp->refCount, vcp->flags, vcp->vcID, vcp->lsn, vcp->uidCounter, vcp->tidCounter, vcp->fidCounter); WriteFile(outputFile, output, (DWORD)strlen(output), &zilch, NULL); @@ -9922,7 +9922,7 @@ int smb_DumpVCP(FILE *outputFile, char *cookie, int lock) for (fidp = vcp->fidsp; fidp; fidp = (smb_fid_t *) osi_QNext(&fidp->q)) { - sprintf(output, "%s -- smb_fidp=0x%p, refCount=%d, fid=%d, vcp=0x%p, scp=0x%p, ioctlp=0x%p, NTopen_pathp=%s, NTopen_wholepathp=%s\r\n", + sprintf(output, "%s -- smb_fidp=0x%p, refCount=%d, fid=%d, vcp=0x%p, scp=0x%p, ioctlp=0x%p, NTopen_pathp=%S, NTopen_wholepathp=%S\r\n", cookie, fidp, fidp->refCount, fidp->fid, fidp->vcp, fidp->scp, fidp->ioctlp, fidp->NTopen_pathp ? fidp->NTopen_pathp : _C("NULL"), fidp->NTopen_wholepathp ? fidp->NTopen_wholepathp : _C("NULL")); @@ -9943,7 +9943,7 @@ int smb_DumpVCP(FILE *outputFile, char *cookie, int lock) { smb_fid_t *fidp; - sprintf(output, "%s vcp=0x%p, refCount=%d, flags=%d, vcID=%d, lsn=%d, uidCounter=%d, tidCounter=%d, fidCounter=%d\r\n", + sprintf(output, "%s vcp=0x%p, refCount=%d, flags=0x%x, vcID=%d, lsn=%d, uidCounter=%d, tidCounter=%d, fidCounter=%d\r\n", cookie, vcp, vcp->refCount, vcp->flags, vcp->vcID, vcp->lsn, vcp->uidCounter, vcp->tidCounter, vcp->fidCounter); WriteFile(outputFile, output, (DWORD)strlen(output), &zilch, NULL); @@ -9952,7 +9952,7 @@ int smb_DumpVCP(FILE *outputFile, char *cookie, int lock) for (fidp = vcp->fidsp; fidp; fidp = (smb_fid_t *) osi_QNext(&fidp->q)) { - sprintf(output, "%s -- smb_fidp=0x%p, refCount=%d, fid=%d, vcp=0x%p, scp=0x%p, ioctlp=0x%p, NTopen_pathp=%s, NTopen_wholepathp=%s\r\n", + sprintf(output, "%s -- smb_fidp=0x%p, refCount=%d, fid=%d, vcp=0x%p, scp=0x%p, ioctlp=0x%p, NTopen_pathp=%S, NTopen_wholepathp=%S\r\n", cookie, fidp, fidp->refCount, fidp->fid, fidp->vcp, fidp->scp, fidp->ioctlp, fidp->NTopen_pathp ? fidp->NTopen_pathp : _C("NULL"), fidp->NTopen_wholepathp ? fidp->NTopen_wholepathp : _C("NULL"));