pespin has uploaded this change for review. (
https://gerrit.osmocom.org/c/libosmo-sigtran/+/39648?usp=email )
Change subject: Improve format of logline prefix in LOGAS(P) macro
......................................................................
Improve format of logline prefix in LOGAS(P) macro
Adding "as-" and "asp" is totally misleading, because it's usual
that we
name ASs "as-XYZ" and ASPs "asp-XYZ".
Intead, better use a usual prefix formatting to indicate the context.
Change-Id: Ib7b6652f2a96bf5c2a2233043755e0c639d41544
---
M src/ss7_as.h
M src/ss7_asp.h
2 files changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran refs/changes/48/39648/1
diff --git a/src/ss7_as.h b/src/ss7_as.h
index 9f4be25..4a7c50d 100644
--- a/src/ss7_as.h
+++ b/src/ss7_as.h
@@ -70,4 +70,4 @@
unsigned int osmo_ss7_as_count_asp(const struct osmo_ss7_as *as);
#define LOGPAS(as, subsys, level, fmt, args ...) \
- _LOGSS7((as)->inst, subsys, level, "as-%s: " fmt, (as)->cfg.name, ##
args)
+ _LOGSS7((as)->inst, subsys, level, "AS(%s) " fmt, (as)->cfg.name, ##
args)
diff --git a/src/ss7_asp.h b/src/ss7_asp.h
index a05d870..483c5ea 100644
--- a/src/ss7_asp.h
+++ b/src/ss7_asp.h
@@ -114,4 +114,4 @@
void osmo_ss7_asp_remove_default_lm(struct osmo_ss7_asp *asp);
#define LOGPASP(asp, subsys, level, fmt, args ...) \
- _LOGSS7((asp)->inst, subsys, level, "asp-%s: " fmt, (asp)->cfg.name, ##
args)
+ _LOGSS7((asp)->inst, subsys, level, "ASP(%s) " fmt, (asp)->cfg.name, ##
args)
--
To view, visit
https://gerrit.osmocom.org/c/libosmo-sigtran/+/39648?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: Ib7b6652f2a96bf5c2a2233043755e0c639d41544
Gerrit-Change-Number: 39648
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>