neels has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-upf/+/31161 )
Change subject: error log: fix msg for gtp_del_tunnel() failure ......................................................................
error log: fix msg for gtp_del_tunnel() failure
gtp_del_tunnel() doesn't return an errno constant, only -1.
Related: CID#307535 Change-Id: I22533db1f9174e725fb00c44877eed90ac222ab5 --- M src/osmo-upf/upf_gtp.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-upf refs/changes/61/31161/1
diff --git a/src/osmo-upf/upf_gtp.c b/src/osmo-upf/upf_gtp.c index 2c37bc4..fea4453 100644 --- a/src/osmo-upf/upf_gtp.c +++ b/src/osmo-upf/upf_gtp.c @@ -468,7 +468,7 @@
rc = gtp_del_tunnel(g_upf->gtp.genl_id, g_upf->gtp.nl, t); if (rc) - LOG_GTP_TUN(tun, LOGL_ERROR, "Failed to delete tunnel: %d %s\n", rc, strerror(rc)); + LOG_GTP_TUN(tun, LOGL_ERROR, "Failed to delete tunnel\n"); else tun->active = false;