From b7ae0b34f94b93555370f4492076f7d57ed7031a Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 29 May 2015 15:11:55 +0200 Subject: ggsn: The id is a uint32_t don't print it as signed This was noticed as I started to use UINT32_MAX for dynamically created GGSNs. --- openbsc/src/gprs/gprs_gmm.c | 2 +- openbsc/src/gprs/sgsn_vty.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'openbsc/src') diff --git a/openbsc/src/gprs/gprs_gmm.c b/openbsc/src/gprs/gprs_gmm.c index 07fd1dcfd..04f75cfe4 100644 --- a/openbsc/src/gprs/gprs_gmm.c +++ b/openbsc/src/gprs/gprs_gmm.c @@ -1639,7 +1639,7 @@ static int activate_ggsn(struct sgsn_mm_ctx *mmctx, { struct sgsn_pdp_ctx *pdp; - LOGMMCTXP(LOGL_DEBUG, mmctx, "Using GGSN %d\n", ggsn->id); + LOGMMCTXP(LOGL_DEBUG, mmctx, "Using GGSN %u\n", ggsn->id); ggsn->gsn = sgsn->gsn; pdp = sgsn_create_pdp_ctx(ggsn, mmctx, req_nsapi, tp); if (!pdp) diff --git a/openbsc/src/gprs/sgsn_vty.c b/openbsc/src/gprs/sgsn_vty.c index 70d299b42..f8182217b 100644 --- a/openbsc/src/gprs/sgsn_vty.c +++ b/openbsc/src/gprs/sgsn_vty.c @@ -167,11 +167,11 @@ static int config_write_sgsn(struct vty *vty) vty_out(vty, " ! apn * ggsn 0%s", VTY_NEWLINE); llist_for_each_entry(actx, &sgsn_apn_ctxts, list) { if (strlen(actx->imsi_prefix) > 0) - vty_out(vty, " apn %s imsi-prefix %s ggsn %d%s", + vty_out(vty, " apn %s imsi-prefix %s ggsn %u%s", actx->name, actx->imsi_prefix, actx->ggsn->id, VTY_NEWLINE); else - vty_out(vty, " apn %s ggsn %d%s", actx->name, + vty_out(vty, " apn %s ggsn %u%s", actx->name, actx->ggsn->id, VTY_NEWLINE); } -- cgit v1.2.3