diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-06-12 17:09:20 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-06-12 17:10:14 +0200 |
commit | 40d9d853e826acf6636e86de0c14c854aac5c588 (patch) | |
tree | ed2ae2995f20f55893f80b9410c5a1d38369d873 /src/host/osmocon | |
parent | 9941ebd51953cc84b543d3a4b966c631c4fc0fc8 (diff) |
osmocon: Fix printf format
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
Diffstat (limited to 'src/host/osmocon')
-rw-r--r-- | src/host/osmocon/osmocon.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |