From 4be92f129a0b8816b4ce11000c51b5f33a775327 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 5 Apr 2019 19:13:03 +0200 Subject: [PATCH] style --- client/flasher.c | 2 +- client/fpga_compress.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/flasher.c b/client/flasher.c index cb77ce719..be74ef8e6 100644 --- a/client/flasher.c +++ b/client/flasher.c @@ -22,7 +22,7 @@ void cmd_debug(UsbCommand *c) { // Debug - printf("UsbCommand length[len=%zd]\n", sizeof(UsbCommand)); + printf("UsbCommand length[len=%zu]\n", sizeof(UsbCommand)); printf(" cmd[len=%zu]: %016" PRIx64"\n", sizeof(c->cmd), c->cmd); printf(" arg0[len=%zu]: %016" PRIx64"\n", sizeof(c->arg[0]), c->arg[0]); printf(" arg1[len=%zu]: %016" PRIx64"\n", sizeof(c->arg[1]), c->arg[1]); diff --git a/client/fpga_compress.c b/client/fpga_compress.c index 0f4220632..3a06a62d3 100644 --- a/client/fpga_compress.c +++ b/client/fpga_compress.c @@ -98,12 +98,12 @@ int zlib_compress(FILE *infile[], uint8_t num_infiles, FILE *outfile, bool hardn #if __WORDSIZE == 64 "Input file too big (> %" PRIu64 " bytes). This is probably not a hardnested bitflip state table.\n" #else - "Input file too big (> %lu bytes). This is probably not a hardnested bitflip state table.\n" + "Input file too big (> %zu bytes). This is probably not a hardnested bitflip state table.\n" #endif , HARDNESTED_TABLE_SIZE); } else { - fprintf(stderr, "Input files too big (total > %lu bytes). These are probably not PM3 FPGA config files.\n", num_infiles * FPGA_CONFIG_SIZE); + fprintf(stderr, "Input files too big (total > %zu 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]);