Change in osmocom-bb[master]: osmocon: Fix printf format

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Tue Jun 12 15:15:11 UTC 2018


Pau Espin Pedrol has uploaded this change for review. ( https://gerrit.osmocom.org/9564


Change subject: osmocon: Fix printf format
......................................................................

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
---
M src/host/osmocon/osmocon.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/64/9564/1

diff --git a/src/host/osmocon/osmocon.c b/src/host/osmocon/osmocon.c
index be6e244..2e822e8 100644
--- a/src/host/osmocon/osmocon.c
+++ b/src/host/osmocon/osmocon.c
@@ -647,7 +647,7 @@
 
 	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;

-- 
To view, visit https://gerrit.osmocom.org/9564
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1e9e10e756d8a612425ee71f4ac0139b2293d3bb
Gerrit-Change-Number: 9564
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180612/da84dc7d/attachment.htm>


More information about the gerrit-log mailing list