From 0c0b89e04627cc43ab3e31c607be4470292a1d0a Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 1 Aug 2008 22:01:49 +0000 Subject: [PATCH] windows-smb-dumpvars-20080801 LICENSE MIT When dumping the smb data structs, report flags in hex and paths are now wchar_t strings. --- src/WINNT/afsd/smb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/WINNT/afsd/smb.c b/src/WINNT/afsd/smb.c index 48f2c1efb..6e95e6891 100644 --- a/src/WINNT/afsd/smb.c +++ b/src/WINNT/afsd/smb.c @@ -9910,7 +9910,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); @@ -9919,7 +9919,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")); @@ -9940,7 +9940,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); @@ -9949,7 +9949,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")); -- 2.39.5