diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-11-09 11:28:13 +0900 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-11-14 00:08:51 +0900 |
commit | 227034c88eb53b5c10d294fe801060aa3d857caa (patch) | |
tree | 816a8f68f4d3e471f7e3472fca034f90b5611b21 /ggsn/gtp-kernel.c | |
parent | 3dad9511714788d377d956e15029583a3329ab30 (diff) |
gtp-kernel: Add function name to pdp_debug() function calls
This allows us to distinguish "add" from "del" operatons in the log
Change-Id: Ibe2e76a6eecc7b5fa5f44ab2c1578597138e30b9
Diffstat (limited to 'ggsn/gtp-kernel.c')
-rw-r--r-- | ggsn/gtp-kernel.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ggsn/gtp-kernel.c b/ggsn/gtp-kernel.c index 0f18002..98d524b 100644 --- a/ggsn/gtp-kernel.c +++ b/ggsn/gtp-kernel.c @@ -35,7 +35,7 @@ #include "gtp-kernel.h" -static void pdp_debug(struct pdp_t *pdp) +static void pdp_debug(const char *prefix, struct pdp_t *pdp) { struct in46_addr ia46; struct in_addr ia; @@ -43,7 +43,7 @@ static void pdp_debug(struct pdp_t *pdp) in46a_from_eua(&pdp->eua, &ia46); gsna2in_addr(&ia, &pdp->gsnrc); - LOGPDPX(DGGSN, LOGL_DEBUG, pdp, "v%u TEID %"PRIu64"x EUA=%s SGSN=%s\n", pdp->version, + LOGPDPX(DGGSN, LOGL_DEBUG, pdp, "%s v%u TEID %"PRIu64"x EUA=%s SGSN=%s\n", prefix, pdp->version, pdp->version == 0 ? pdp_gettid(pdp->imsi, pdp->nsapi) : pdp->teid_gn, in46a_ntoa(&ia46), inet_ntoa(ia)); } @@ -139,7 +139,7 @@ int gtp_kernel_tunnel_add(struct pdp_t *pdp, const char *devname) struct gtp_tunnel *t; int ret; - pdp_debug(pdp); + pdp_debug(__func__, pdp); t = gtp_tunnel_alloc(); if (t == NULL) @@ -173,7 +173,7 @@ int gtp_kernel_tunnel_del(struct pdp_t *pdp, const char *devname) struct gtp_tunnel *t; int ret; - pdp_debug(pdp); + pdp_debug(__func__, pdp); t = gtp_tunnel_alloc(); if (t == NULL) |