Add mandatory format argument to tpritnf().

This commit is contained in:
Egor Pugin 2024-12-19 20:06:15 +03:00
parent 8cb04183c1
commit d95e9f7905

View File

@ -33,8 +33,8 @@ TESS_API FILE *get_debugfp();
// Main logging function. Trace printf.
template <typename ... Types>
auto tprintf(Types && ... args) {
return fprintf(get_debugfp(), std::forward<Types>(args)...);
auto tprintf(const char *format, Types && ... args) {
return fprintf(get_debugfp(), format, std::forward<Types>(args)...);
}
} // namespace tesseract