From ff649d5bf51d78959de769e35eec61a5667d5939 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sun, 24 Feb 2013 14:01:28 -0500 Subject: [PATCH] Windows: no side effects from AFSDbgLogMsg calls Do not perform assignments or call side-effect resulting functions as parameters to AFSDbgLogMsg. Change-Id: I76eca3a82377543f4148d03af51a07886127b385 Reviewed-on: http://gerrit.openafs.org/9242 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- src/WINNT/afsrdr/kernel/lib/AFSCreate.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/WINNT/afsrdr/kernel/lib/AFSCreate.cpp b/src/WINNT/afsrdr/kernel/lib/AFSCreate.cpp index 23322bbe3c..93b92bc250 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSCreate.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSCreate.cpp @@ -1030,13 +1030,15 @@ try_exit: SetFlag( pCcb->Flags, CCB_FLAG_MASK_OPENED_REPARSE_POINT); } + lCount = pCcb->DirectoryCB->DirOpenReferenceCount; + AFSDbgLogMsg( AFS_SUBSYSTEM_DIRENTRY_REF_COUNTING, AFS_TRACE_LEVEL_VERBOSE, "AFSCommonCreate Count on %wZ DE %p Ccb %p Cnt %d\n", &pCcb->DirectoryCB->NameInformation.FileName, pCcb->DirectoryCB, pCcb, - lCount = pCcb->DirectoryCB->DirOpenReferenceCount); + lCount); ASSERT( lCount >= 0);