Skip to content

Commit

Permalink
Output directory list to stdout. Fixes tesseract-ocr#4149
Browse files Browse the repository at this point in the history
  • Loading branch information
tfmorris committed Oct 23, 2023
1 parent dc228ed commit 8cee06d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ccutil/tessdatamanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,11 @@ void TessdataManager::Clear() {

// Prints a directory of contents.
void TessdataManager::Directory() const {
tprintf("Version:%s\n", VersionString().c_str());
printf("Version:%s\n", VersionString().c_str());
auto offset = TESSDATA_NUM_ENTRIES * sizeof(int64_t);
for (unsigned i = 0; i < TESSDATA_NUM_ENTRIES; ++i) {
if (!entries_[i].empty()) {
tprintf("%u:%s:size=%zu, offset=%zu\n", i, kTessdataFileSuffixes[i], entries_[i].size(),
printf("%u:%s:size=%zu, offset=%zu\n", i, kTessdataFileSuffixes[i], entries_[i].size(),
offset);
offset += entries_[i].size();
}
Expand Down

0 comments on commit 8cee06d

Please sign in to comment.