[PATCH] osmo-ggsn[master]: apn_stop(): Print tun device name when closing tun device

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
Sun Oct 1 10:20:10 UTC 2017


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

apn_stop(): Print tun device name when closing tun device

Change-Id: If981cc0696122cb69c01ceac6f54ae01bcbf4a2d
---
M ggsn/ggsn.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/19/4119/1

diff --git a/ggsn/ggsn.c b/ggsn/ggsn.c
index dd71957..bafcb1b 100644
--- a/ggsn/ggsn.c
+++ b/ggsn/ggsn.c
@@ -125,7 +125,7 @@
 			tun_runscript(apn->tun.tun, apn->tun.cfg.ipdown_script);
 		}
 		/* release tun device */
-		LOGPAPN(LOGL_INFO, apn, "Closing TUN device\n");
+		LOGPAPN(LOGL_INFO, apn, "Closing TUN device %s\n", apn->tun.tun->devname);
 		osmo_fd_unregister(&apn->tun.fd);
 		tun_free(apn->tun.tun);
 		apn->tun.tun = NULL;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If981cc0696122cb69c01ceac6f54ae01bcbf4a2d
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list