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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed Jun 13 11:17:14 UTC 2018


Harald Welte has submitted this change and it was merged. ( 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(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



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: merged
Gerrit-Change-Id: I1e9e10e756d8a612425ee71f4ac0139b2293d3bb
Gerrit-Change-Number: 9564
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180613/35a72983/attachment.htm>


More information about the gerrit-log mailing list