This commit is contained in:
iceman1001 2017-02-23 00:58:52 +01:00
parent 8ad1e731c8
commit 3919356baf
2 changed files with 4 additions and 5 deletions

View file

@ -68,7 +68,6 @@ static bool all_feof(FILE *infile[], uint8_t num_infiles)
return false; return false;
} }
} }
return true; return true;
} }
@ -141,7 +140,7 @@ int zlib_compress(FILE *infile[], uint8_t num_infiles, FILE *outfile)
ret = deflate(&compressed_fpga_stream, Z_FINISH); ret = deflate(&compressed_fpga_stream, Z_FINISH);
} }
fprintf(stderr, "compressed %u input bytes to %" PRIu32 " output bytes\n", i, compressed_fpga_stream.total_out); fprintf(stderr, "compressed %u input bytes to %" PRIu64 " output bytes\n", i, compressed_fpga_stream.total_out);
if (ret != Z_STREAM_END) { if (ret != Z_STREAM_END) {
fprintf(stderr, "Error in deflate(): %d %s\n", ret, compressed_fpga_stream.msg); fprintf(stderr, "Error in deflate(): %d %s\n", ret, compressed_fpga_stream.msg);

View file

@ -117,7 +117,7 @@ mtostr(const model_t *model) {
if((string = malloc(size))) { if((string = malloc(size))) {
sprintf(strbuf, "\"%s\"", model->name); sprintf(strbuf, "\"%s\"", model->name);
sprintf(string, sprintf(string,
"width=%" PRIu32 "" "width=%" PRIu64 ""
"poly=0x%s " "poly=0x%s "
"init=0x%s " "init=0x%s "
"refin=%s " "refin=%s "