Skip to content

Commit

Permalink
Merge pull request tesseract-ocr#280 from stweil/format
Browse files Browse the repository at this point in the history
Fix more format string related errors
  • Loading branch information
zdenop committed Mar 17, 2016
2 parents 6b82002 + c388c0c commit 0c59605
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion classify/shapeclassifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ void ShapeClassifier::UnicharPrintResults(
if (results[i].fonts.size() != 0) {
tprintf(" Font Vector:");
for (int f = 0; f < results[i].fonts.size(); ++f) {
tprintf(" %d", results[i].fonts[f]);
tprintf(" %d", results[i].fonts[f].fontinfo_id);
}
}
tprintf("\n");
Expand Down
2 changes: 1 addition & 1 deletion textord/colpartition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1527,7 +1527,7 @@ void ColPartition::LineSpacingBlocks(const ICOORD& bleft, const ICOORD& tright,
} else {
if (textord_debug_tabfind && !it.empty()) {
ColPartition* next_part = it.data();
tprintf("Spacings equal: upper:%d/%d, lower:%d/%d\n",
tprintf("Spacings equal: upper:%d/%d, lower:%d/%d, median:%d/%d\n",
part->top_spacing(), part->bottom_spacing(),
next_part->top_spacing(), next_part->bottom_spacing(),
part->median_size(), next_part->median_size());
Expand Down
4 changes: 2 additions & 2 deletions textord/tospace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,7 @@ ROW *Textord::make_prop_words(
blanks = 0;
if (tosp_debug_level > 5)
tprintf
("Repch wd at EOL (%d,%d). rep spacing %d; Lgap:%d (%d blanks)\n",
("Repch wd at EOL (%d,%d). rep spacing %5.2f; Lgap:%d (%d blanks)\n",
word->bounding_box ().left (), word->bounding_box ().bottom (),
repetition_spacing, current_gap, blanks);
word->set_blanks (blanks);
Expand Down Expand Up @@ -1686,7 +1686,7 @@ void Textord::mark_gap(
blob.bottom () + blob.height () / 2.0f);
}
if (tosp_debug_level > 5)
tprintf (" (%d,%d) Sp<->Kn Rule %d %d %d %d %d\n",
tprintf (" (%d,%d) Sp<->Kn Rule %d %d %d %d %d %d\n",
blob.left () - current_gap / 2, blob.bottom (), rule,
prev_gap, prev_blob_width, current_gap,
next_blob_width, next_gap);
Expand Down
2 changes: 1 addition & 1 deletion wordrec/associate.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct AssociateStats {
}

void Print() {
tprintf("AssociateStats: w(%g %d) s(%g %d)\n", shape_cost, bad_shape);
tprintf("AssociateStats: w(%g %d)\n", shape_cost, bad_shape);
}

float shape_cost; // cost of blob shape
Expand Down

0 comments on commit 0c59605

Please sign in to comment.