[MERGED] osmo-iuh[master]: log: fix number format for domain indicator

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
Fri Dec 9 12:10:32 UTC 2016


Harald Welte has submitted this change and it was merged.

Change subject: log: fix number format for domain indicator
......................................................................


log: fix number format for domain indicator

CN_DomainIndicator_t is a long, so use %l format.
Error was introduced in recent 2b5021fd8d445f0ca4f28e0ea71a19cd52724e57.

Fixes: CID#157119
Change-Id: I22f49d45bc87897beb24a6b1eee6c83da3e57b0f
---
M src/hnbgw_rua.c
1 file changed, 2 insertions(+), 2 deletions(-)

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



diff --git a/src/hnbgw_rua.c b/src/hnbgw_rua.c
index 0ca64d3..47d33f0 100644
--- a/src/hnbgw_rua.c
+++ b/src/hnbgw_rua.c
@@ -348,7 +348,7 @@
 		cn = hnb->gw->cnlink_ps;
 		break;
 	default:
-		LOGP(DRUA, LOGL_ERROR, "Invalid CN_DomainIndicator: %u\n",
+		LOGP(DRUA, LOGL_ERROR, "Invalid CN_DomainIndicator: %l\n",
 		     ies.cN_DomainIndicator);
 		rc = -1;
 		goto error_free;
@@ -394,7 +394,7 @@
 		cn = hnb->gw->cnlink_ps;
 		break;
 	default:
-		LOGP(DRUA, LOGL_ERROR, "Invalid CN_DomainIndicator: %u\n",
+		LOGP(DRUA, LOGL_ERROR, "Invalid CN_DomainIndicator: %l\n",
 		     ies.cN_DomainIndicator);
 		rc = -1;
 		goto error_free;

-- 
To view, visit https://gerrit.osmocom.org/1369
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I22f49d45bc87897beb24a6b1eee6c83da3e57b0f
Gerrit-PatchSet: 1
Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list