Change pages to lines in message

The pages variables refer to the lines in document. This change makes the messages clearer without changing the variable names.
This commit is contained in:
Shreeshrii 2019-04-03 10:41:14 +05:30 committed by GitHub
parent 3e7144e796
commit 613c2bf6e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -550,11 +550,11 @@ bool DocumentData::ReCachePages() {
}
}
if (page < loaded_pages) {
tprintf("Deserialize failed: %s read %d/%d pages\n",
tprintf("Deserialize failed: %s read %d/%d lines\n",
document_name_.string(), page, loaded_pages);
pages_.truncate(0);
} else {
tprintf("Loaded %d/%d pages (%d-%d) of document %s\n", pages_.size(),
tprintf("Loaded %d/%d lines (%d-%d) of document %s\n", pages_.size(),
loaded_pages, pages_offset_ + 1, pages_offset_ + pages_.size(),
document_name_.string());
}