Skip to content

Commit

Permalink
disable verbose debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
embetrix committed Dec 15, 2024
1 parent 1fa21a5 commit 983122f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bmap-writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ bmap_t parseBMap(const std::string &filename) {
xmlChar *blockSizeStr = xmlNodeGetContent(node);
bmapData.blockSize = static_cast<size_t>(std::stoul(reinterpret_cast<const char *>(blockSizeStr)));
xmlFree(blockSizeStr);
std::cout << "BlockSize: " << bmapData.blockSize << std::endl;
//std::cout << "BlockSize: " << bmapData.blockSize << std::endl;
} else if (strcmp(reinterpret_cast<const char *>(node->name), "BlockMap") == 0) {
for (xmlNodePtr rangeNode = node->children; rangeNode; rangeNode = rangeNode->next) {
if (rangeNode->type == XML_ELEMENT_NODE && strcmp(reinterpret_cast<const char *>(rangeNode->name), "Range") == 0) {
Expand Down Expand Up @@ -217,7 +217,7 @@ int BmapWriteImage(const std::string &imageFile, const bmap_t &bmap, const std::
if (sscanf(range.range.c_str(), "%zu-%zu", &startBlock, &endBlock) == 1) {
endBlock = startBlock; // Handle single block range
}
std::cout << "Processing Range: startBlock=" << startBlock << ", endBlock=" << endBlock << std::endl;
//std::cout << "Processing Range: startBlock=" << startBlock << ", endBlock=" << endBlock << std::endl;

size_t bufferSize = (endBlock - startBlock + 1) * bmap.blockSize;
std::vector<char> buffer(bufferSize);
Expand Down

0 comments on commit 983122f

Please sign in to comment.