From 40d9d853e826acf6636e86de0c14c854aac5c588 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 12 Jun 2018 17:09:20 +0200 Subject: osmocon: Fix printf format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes compilation warning: osmocon.c:650:21: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long int’ [-Wformat=] printf("%u bytes (%u/%u)\n", rc, dnload.write_ptr - dnload.data, ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lu Change-Id: I1e9e10e756d8a612425ee71f4ac0139b2293d3bb --- src/host/osmocon/osmocon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/host/osmocon') diff --git a/src/host/osmocon/osmocon.c b/src/host/osmocon/osmocon.c index be6e2440..2e822e82 100644 --- a/src/host/osmocon/osmocon.c +++ b/src/host/osmocon/osmocon.c @@ -647,7 +647,7 @@ static int handle_write_dnload(void) dnload.write_ptr += rc; - printf("%u bytes (%u/%u)\n", rc, dnload.write_ptr - dnload.data, + printf("%u bytes (%lu/%u)\n", rc, dnload.write_ptr - dnload.data, dnload.data_len); return 0; -- cgit v1.2.3