From 19a9074039edc537b99bfff8715455392f44d318 Mon Sep 17 00:00:00 2001 From: Yan Date: Mon, 21 Mar 2022 13:53:40 +0000 Subject: [PATCH] Avoid warnings by using PRIu64 --- host/hackrf-tools/src/hackrf_transfer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/host/hackrf-tools/src/hackrf_transfer.c b/host/hackrf-tools/src/hackrf_transfer.c index 20171225..4874c43b 100644 --- a/host/hackrf-tools/src/hackrf_transfer.c +++ b/host/hackrf-tools/src/hackrf_transfer.c @@ -35,6 +35,7 @@ #include #include #include +#include #ifndef bool typedef int bool; @@ -1218,8 +1219,8 @@ int main(int argc, char** argv) { } else { fprintf(stderr, "Transfer statistics:\n" - "%lu bytes transferred by M0\n" - "%lu bytes transferred by M4\n" + "%" PRIu64 " bytes transferred by M0\n" + "%" PRIu64 " bytes transferred by M4\n" "%u %s, longest %u bytes\n", stats.m0_total, stats.m4_total,