]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/fpga_compress.c
Merge remote-tracking branch 'upstream/master'
[proxmark3-svn] / client / fpga_compress.c
index 5f4d23d47987b138766eaf4eb5810a6adc434729..5c16829236f9298540c1e8e8a361fe23a93a14af 100644 (file)
@@ -97,7 +97,7 @@ int zlib_compress(FILE *infile[], uint8_t num_infiles, FILE *outfile)
                }
 
                if (i > num_infiles * FPGA_CONFIG_SIZE) {
-                       fprintf(stderr, "Input files too big (total of %ld > %d bytes). These are probably not PM3 FPGA config files.", i, num_infiles*FPGA_CONFIG_SIZE);
+                       fprintf(stderr, "Input files too big (total > %lu bytes). These are probably not PM3 FPGA config files.", num_infiles*FPGA_CONFIG_SIZE);
                        for(uint16_t j = 0; j < num_infiles; j++) {
                                fclose(infile[j]);
                        }
@@ -136,7 +136,7 @@ int zlib_compress(FILE *infile[], uint8_t num_infiles, FILE *outfile)
                ret = deflate(&compressed_fpga_stream, Z_FINISH);
        }
        
-       fprintf(stderr, "compressed %d input bytes to %d output bytes\n", i, compressed_fpga_stream.total_out);
+       fprintf(stderr, "compressed %lu input bytes to %lu output bytes\n", i, compressed_fpga_stream.total_out);
 
        if (ret != Z_STREAM_END) {
                fprintf(stderr, "Error in deflate(): %d %s\n", ret, compressed_fpga_stream.msg);
Impressum, Datenschutz