diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2013-10-09 11:27:04 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-11 14:41:40 +0200 |
commit | 34fc4701c7681a4855534c20a6f59d12c4c81521 (patch) | |
tree | a4911e712727211828200038bd1439b7bb0a5069 /include/osmocom | |
parent | 2c9168cf34d370b4ea2b21177402d01a7cfffea8 (diff) |
tests/gb: Show invoked signals in test output
Register an osmo signal handler to print a short notice about every
SS_L_NS signal that is generated while processing the tests.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/gprs/gprs_ns.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/osmocom/gprs/gprs_ns.h b/include/osmocom/gprs/gprs_ns.h index c709312a..d16068be 100644 --- a/include/osmocom/gprs/gprs_ns.h +++ b/include/osmocom/gprs/gprs_ns.h @@ -176,6 +176,9 @@ void gprs_nsvc_reset(struct gprs_nsvc *nsvc, uint8_t cause); /* Add NS-specific VTY stuff */ int gprs_ns_vty_init(struct gprs_ns_inst *nsi); +/* Resturn peer info as string (NOTE: the buffer is allocated statically) */ +const char *gprs_ns_format_peer(struct gprs_nsvc *nsvc); + #define NS_ALLOC_SIZE 2048 #define NS_ALLOC_HEADROOM 20 static inline struct msgb *gprs_ns_msgb_alloc(void) |