Output directory list to stdout. Fixes #4149

This commit is contained in:
Tom Morris 2023-10-23 19:47:22 -04:00
parent dc228edc56
commit 8cee06da5a

View File

@ -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();
}