diff --git a/ccstruct/rwpoly.cpp b/ccstruct/rwpoly.cpp index c8d0c3e9033d3b960f034e9edbd55f1c06a21e89..91fb7403fc7c3e366b74db8ff4f66b18202f35da 100644 --- a/ccstruct/rwpoly.cpp +++ b/ccstruct/rwpoly.cpp @@ -83,7 +83,7 @@ DLLSYM PAGE_BLOCK_LIST *read_poly_blocks( //read file page_block_it.set_to_list (pb_list); number_of_pblocks = pb_list->length (); - printf ("%d page blocks read\n", number_of_pblocks); + tprintf ("%d page blocks read\n", number_of_pblocks); return pb_list; } diff --git a/ccutil/scanutils.cpp b/ccutil/scanutils.cpp index 0bc6dbca8a149fc8fb364075cd328162bf22b361..35906c9f0d57513023980466d98d073f93dea2cf 100644 --- a/ccutil/scanutils.cpp +++ b/ccutil/scanutils.cpp @@ -170,7 +170,7 @@ double streamtofloat(FILE* s) k *= 10; } } else if (c == 'e' || c == 'E') - printf("WARNING: Scientific Notation not supported!"); + tprintf("WARNING: Scientific Notation not supported!"); ungetc(c, s); double f = static_cast(v) @@ -204,7 +204,7 @@ double strtofloat(const char* s) k *= 10; } } else if (*s == 'e' || *s == 'E') - printf("WARNING: Scientific Notation not supported!"); + tprintf("WARNING: Scientific Notation not supported!"); double f = static_cast(v) + static_cast(w) / static_cast(k); diff --git a/classify/adaptmatch.cpp b/classify/adaptmatch.cpp index 7602e2e8fe71dc015e556feb3b48b3418c22ef9b..360ae9377e1a675d9d27e4722030f083fadfba50 100644 --- a/classify/adaptmatch.cpp +++ b/classify/adaptmatch.cpp @@ -627,7 +627,7 @@ LIST AdaptiveClassifier(TBLOB *Blob, TBLOB *DotBlob, TEXTROW *Row) { NumClassesOutput += count (Choices); if (Choices == NIL) { if (!bln_numericmode) - printf ("Nil classification!\n"); // Should never normally happen. + tprintf ("Nil classification!\n"); // Should never normally happen. return (append_choice (NIL, "", 50.0f, -20.0f, -1)); } diff --git a/cutil/cutil.cpp b/cutil/cutil.cpp index 5ec2cbcaefa141a50b9ff04666f081bab2f7e473..9e00101b31805aa6b31d6ed4e3c14421aece1152 100644 --- a/cutil/cutil.cpp +++ b/cutil/cutil.cpp @@ -40,6 +40,7 @@ Import original HP distribution **/ #include "cutil.h" +#include "tprintf.h" #include "callcpp.h" #include @@ -85,7 +86,7 @@ long long_rand(long limit) { FILE *open_file(const char *filename, const char *mode) { FILE *thisfile = NULL; if ((thisfile = fopen (filename, mode)) == NULL) { - printf ("Could not open file, %s\n", filename); + tprintf ("Could not open file, %s\n", filename); exit (1); } return (thisfile);