[PATCH] 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/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Wed Dec 7 14:33:32 UTC 2016


Review at  https://gerrit.osmocom.org/1369

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(-)


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

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: newchange
Gerrit-Change-Id: I22f49d45bc87897beb24a6b1eee6c83da3e57b0f
Gerrit-PatchSet: 1
Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list