diff --git a/src/apps/bin/makeudfimage/Allocator.cpp b/src/apps/bin/makeudfimage/Allocator.cpp index 9121bba240..26f0defdb6 100644 --- a/src/apps/bin/makeudfimage/Allocator.cpp +++ b/src/apps/bin/makeudfimage/Allocator.cpp @@ -205,8 +205,8 @@ uint32 Allocator::BlocksFor(uint32 bytes) { if (BlockSize() == 0) { -// DEBUG_INIT_ETC("Allocator", ("bytes: %ld\n", bytes)); -// PRINT(("WARNING: Allocator::BlockSize() == 0!\n")); + DEBUG_INIT_ETC("Allocator", ("bytes: %ld\n", bytes)); + PRINT(("WARNING: Allocator::BlockSize() == 0!\n")); return 0; } else { uint32 blocks = bytes / BlockSize(); diff --git a/src/apps/bin/makeudfimage/Allocator.h b/src/apps/bin/makeudfimage/Allocator.h index 2266e35dbf..b1b0e23ae8 100644 --- a/src/apps/bin/makeudfimage/Allocator.h +++ b/src/apps/bin/makeudfimage/Allocator.h @@ -35,6 +35,7 @@ public: Udf::extent_address &extent); uint32 Length() const { return fLength; } + uint32 Tail() const { return fLength; } //!< Returns the first unallocated block in the tail uint32 BlockSize() const { return fBlockSize; } uint32 BlockShift() const { return fBlockShift; }