]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/fpga_compress.c
ADD: some clocking for 'hf mf mifare', 'hf mf nested', 'hf mf chk'
[proxmark3-svn] / client / fpga_compress.c
index 814167ad1e0206da37bf9f91a62cd1e4e9625403..3d5ba7cadb0bdf460622b142579801966f83b7d9 100644 (file)
@@ -87,8 +87,8 @@ int zlib_compress(FILE *infile[], uint8_t num_infiles, FILE *outfile)
        do {
 
                if (i >= num_infiles * FPGA_CONFIG_SIZE) {
-                       fprintf(stderr, "Input files too big (total > %lu bytes). These are probably not PM3 FPGA config files.\n", num_infiles*FPGA_CONFIG_SIZE);
-               for(uint16_t j = 0; j < num_infiles; j++) {
+                       fprintf(stderr, "Input files too big (total > %d bytes). These are probably not PM3 FPGA config files.\n", num_infiles*FPGA_CONFIG_SIZE);
+                       for(uint16_t j = 0; j < num_infiles; j++) {
                                fclose(infile[j]);
                        }
                        return(EXIT_FAILURE);
@@ -138,7 +138,7 @@ int zlib_compress(FILE *infile[], uint8_t num_infiles, FILE *outfile)
                ret = deflate(&compressed_fpga_stream, Z_FINISH);
        }
        
-       fprintf(stderr, "compressed %lu input bytes to %lu output bytes\n", i, compressed_fpga_stream.total_out);
+       fprintf(stderr, "compressed %lu input bytes to %u 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