[NTFS][UDFS] Fix build with NDEBUG undefined (#4171)

- Fix DumpBTreeNode() parameters in ntfs/btree.c
- Comment out unused variable in env_spec.cpp
- Fix missed brackets in else clause in wcache_lib.cpp
This commit is contained in:
Ronny Borchert 2021-12-17 23:21:01 +01:00 committed by Hermès Bélusca-Maïto
parent 0fd3e51580
commit 9d33a2056e
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
3 changed files with 6 additions and 5 deletions

View file

@ -1901,7 +1901,7 @@ SplitBTreeNode(PB_TREE Tree,
CaseSensitive ? "TRUE" : "FALSE");
#ifndef NDEBUG
DumpBTreeNode(Node, 0, 0);
DumpBTreeNode(Tree, Node, 0, 0);
#endif
// Create the right hand sibling
@ -2020,10 +2020,10 @@ SplitBTreeNode(PB_TREE Tree,
#ifndef NDEBUG
DPRINT1("Left-hand node after split:\n");
DumpBTreeNode(Node, 0, 0);
DumpBTreeNode(Tree, Node, 0, 0);
DPRINT1("Right-hand sibling node after split:\n");
DumpBTreeNode(*NewRightHandSibling, 0, 0);
DumpBTreeNode(Tree, *NewRightHandSibling, 0, 0);
#endif
return STATUS_SUCCESS;

View file

@ -1128,10 +1128,11 @@ WCacheUpdatePacket(
(PVOID)WCacheSectorAddr(block_array, Lba0),
BS) != BS);
}
if(mod)
if(mod) {
DbgCopyMemory(tmp_buff2 + (i << BSh),
(PVOID)WCacheSectorAddr(block_array, Lba0),
BS);
}
}
}

View file

@ -307,7 +307,7 @@ UDFPhWriteSynchronous(
KeQuerySystemTime((PLARGE_INTEGER)&IoEnterTime);
#endif //MEASURE_IO_PERFORMANCE
#if defined UDF_DBG || defined USE_PERF_PRINT
#ifdef USE_PERF_PRINT
ULONG Lba = (ULONG)(Offset>>0xb);
// ASSERT(!(Lba & (32-1)));
PerfPrint(("UDFPhWrite: Length: %x Lba: %lx\n",Length>>0xb,Lba));