~grimler/Heimdall

d252c72d3482d5eaecd420ce0c6a0d2229242592 — Henrik Grimler 2 years ago 8d5a79a size_check
REVERTME: print size of files and partition sizes in PIT

For debugging purposes.
1 files changed, 1 insertions(+), 0 deletions(-)

M heimdall/source/FlashAction.cpp
M heimdall/source/FlashAction.cpp => heimdall/source/FlashAction.cpp +1 -0
@@ 309,6 309,7 @@ static bool flashPartitions(BridgeManager *bridgeManager, const vector<Partition
			unsigned int blockSize = 512;
			if (part->GetDeviceType() == PitEntry::kDeviceTypeMMC4096)
				blockSize = 4096;
			printf("Partition %s: size %lu, size in PIT: %lu\n", it->argumentName, it->fileSize, partitionSize*blockSize);
			if (partitionSize > 0 && it->fileSize > partitionSize*blockSize)
			{
				Interface::PrintError("%s partition is too small for specified file\n",