Skip to content

Commit 0c59605

Browse files
committed
Merge pull request #280 from stweil/format
Fix more format string related errors
2 parents 6b82002 + c388c0c commit 0c59605

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

classify/shapeclassifier.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ void ShapeClassifier::UnicharPrintResults(
179179
if (results[i].fonts.size() != 0) {
180180
tprintf(" Font Vector:");
181181
for (int f = 0; f < results[i].fonts.size(); ++f) {
182-
tprintf(" %d", results[i].fonts[f]);
182+
tprintf(" %d", results[i].fonts[f].fontinfo_id);
183183
}
184184
}
185185
tprintf("\n");

textord/colpartition.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1527,7 +1527,7 @@ void ColPartition::LineSpacingBlocks(const ICOORD& bleft, const ICOORD& tright,
15271527
} else {
15281528
if (textord_debug_tabfind && !it.empty()) {
15291529
ColPartition* next_part = it.data();
1530-
tprintf("Spacings equal: upper:%d/%d, lower:%d/%d\n",
1530+
tprintf("Spacings equal: upper:%d/%d, lower:%d/%d, median:%d/%d\n",
15311531
part->top_spacing(), part->bottom_spacing(),
15321532
next_part->top_spacing(), next_part->bottom_spacing(),
15331533
part->median_size(), next_part->median_size());

textord/tospace.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ ROW *Textord::make_prop_words(
11311131
blanks = 0;
11321132
if (tosp_debug_level > 5)
11331133
tprintf
1134-
("Repch wd at EOL (%d,%d). rep spacing %d; Lgap:%d (%d blanks)\n",
1134+
("Repch wd at EOL (%d,%d). rep spacing %5.2f; Lgap:%d (%d blanks)\n",
11351135
word->bounding_box ().left (), word->bounding_box ().bottom (),
11361136
repetition_spacing, current_gap, blanks);
11371137
word->set_blanks (blanks);
@@ -1686,7 +1686,7 @@ void Textord::mark_gap(
16861686
blob.bottom () + blob.height () / 2.0f);
16871687
}
16881688
if (tosp_debug_level > 5)
1689-
tprintf (" (%d,%d) Sp<->Kn Rule %d %d %d %d %d\n",
1689+
tprintf (" (%d,%d) Sp<->Kn Rule %d %d %d %d %d %d\n",
16901690
blob.left () - current_gap / 2, blob.bottom (), rule,
16911691
prev_gap, prev_blob_width, current_gap,
16921692
next_blob_width, next_gap);

wordrec/associate.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct AssociateStats {
4848
}
4949

5050
void Print() {
51-
tprintf("AssociateStats: w(%g %d) s(%g %d)\n", shape_cost, bad_shape);
51+
tprintf("AssociateStats: w(%g %d)\n", shape_cost, bad_shape);
5252
}
5353

5454
float shape_cost; // cost of blob shape

0 commit comments

Comments
 (0)