diff options
author | Harald Welte <laforge@osmocom.org> | 2020-12-07 12:03:10 +0100 |
---|---|---|
committer | Daniel Willmann <dwillmann@sysmocom.de> | 2020-12-10 18:06:34 +0100 |
commit | 7cb76a4321368bcdc87e9bd9dce99584dec53a56 (patch) | |
tree | eafac68e53aaecc028e2fc5e21493dbff86048e9 /include/osmocom | |
parent | c91f53ca0ae20c1a371ed94b6565acc7cc3571e5 (diff) |
gbproxy: Introduce new DOBJ log category; log object allocation/release
Related: OS#4472
Change-Id: I43bcbcda8667d193e7a17fd8e8e9109597b01484
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/sgsn/debug.h | 1 | ||||
-rw-r--r-- | include/osmocom/sgsn/gb_proxy.h | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/osmocom/sgsn/debug.h b/include/osmocom/sgsn/debug.h index 507b70c11..da819d562 100644 --- a/include/osmocom/sgsn/debug.h +++ b/include/osmocom/sgsn/debug.h @@ -39,6 +39,7 @@ enum { DIUCS, DSIGTRAN, DGTP, + DOBJ, Debug_LastEntry, }; diff --git a/include/osmocom/sgsn/gb_proxy.h b/include/osmocom/sgsn/gb_proxy.h index e61b99101..8892cf4df 100644 --- a/include/osmocom/sgsn/gb_proxy.h +++ b/include/osmocom/sgsn/gb_proxy.h @@ -142,6 +142,11 @@ struct gbproxy_nse { #define LOGPBVC(BVC, LEVEL, FMT, ARGS...) \ LOGPBVC_CAT(BVC, DGPRS, LEVEL, FMT, ## ARGS) +#define LOGPCELL_CAT(CELL, SUBSYS, LEVEL, FMT, ARGS...) \ + LOGP(SUBSYS, LEVEL, "CELL(%05u) " FMT, (CELL)->bvci, ## ARGS) +#define LOGPCELL(CELL, LEVEL, FMT, ARGS...) \ + LOGPCELL_CAT(CELL, DGPRS, LEVEL, FMT, ## ARGS) + /* gb_proxy_vty .c */ int gbproxy_vty_init(void); |