Change in osmo-iuh[master]: tests/hnb-test-ranap.c: Fix wrong 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/.

pespin gerrit-no-reply at lists.osmocom.org
Fri Mar 20 19:38:00 UTC 2020


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-iuh/+/17543 )


Change subject: tests/hnb-test-ranap.c: Fix wrong printf format
......................................................................

tests/hnb-test-ranap.c: Fix wrong printf format

Catched by compiler:
hnb-test-ranap.c:76:44: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘RANAP_CN_DomainIndicator_t’ {aka ‘long int’} [-Wformat=]

Change-Id: Ie4cd6a36fd0e9a871a1815d600e8a321a3d2a208
---
M src/tests/hnb-test-ranap.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-iuh refs/changes/43/17543/1

diff --git a/src/tests/hnb-test-ranap.c b/src/tests/hnb-test-ranap.c
index e7c9871..517e1a3 100644
--- a/src/tests/hnb-test-ranap.c
+++ b/src/tests/hnb-test-ranap.c
@@ -73,7 +73,7 @@
 					 ranap_msg->msg.pagingIEs.permanentNAS_UE_ID.choice.iMSI.size);
 		} else imsi[0] = '\0';
 
-		printf("rx Paging: presence=%hx  domain=%d  IMSI=%s\n",
+		printf("rx Paging: presence=%hx  domain=%ld  IMSI=%s\n",
 		       ranap_msg->msg.pagingIEs.presenceMask,
 		       ranap_msg->msg.pagingIEs.cN_DomainIndicator,
 		       imsi

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-iuh/+/17543
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: Ie4cd6a36fd0e9a871a1815d600e8a321a3d2a208
Gerrit-Change-Number: 17543
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200320/2ea5384f/attachment.htm>


More information about the gerrit-log mailing list