Fix log_* formats which expect long long uint but receive uint64_t.

This commit is contained in:
Iestyn Pryce
2017-05-21 10:57:20 +01:00
parent 0c3ef33682
commit 73d27caeb9
4 changed files with 6 additions and 6 deletions

View File

@@ -1090,7 +1090,7 @@ bool address_parser_train_epoch(address_parser_t *self, void *trainer, char *fil
uint64_t prev_errors = errors;
errors = address_parser_train_num_errors(self, trainer);
log_info("Iter %d: Did %zu examples with %llu errors\n", iteration, examples, errors - prev_errors);
log_info("Iter %d: Did %zu examples with %" PRIu64 " errors\n", iteration, examples, errors - prev_errors);
}
}
@@ -1211,7 +1211,7 @@ int main(int argc, char **argv) {
exit(EXIT_FAILURE);
}
min_updates = arg_min_updates;
log_info("min_updates = %llu\n", min_updates);
log_info("min_updates = %" PRIu64 "\n", min_updates);
} else if (kwarg == ADDRESS_PARSER_TRAIN_ARG_MODEL_TYPE) {
if (string_equals(arg, "crf")) {
model_type = ADDRESS_PARSER_TYPE_CRF;