diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-04-05 03:45:15 +0200 |
---|---|---|
committer | fixeria <vyanitskiy@sysmocom.de> | 2021-04-12 12:15:17 +0000 |
commit | 4b46b7eb53a26f975ff96af96d7351b289a57889 (patch) | |
tree | 984678ca673cef6563108caa337c1c60cdd257c4 /tests/logging/logging_vty_test.vty | |
parent | 47c7b4fc2496da5df4a4a208b87f271b9efa36c7 (diff) |
vty/logging: logp: properly handle library specific sub-systems
The library specific sub-systems are kind of special, because their
position in the 'osmo_log_info' may vary depending on the number of
application specific sub-systems. This is why their associated
constant values (like DLGLOBAL) are negative, and this is what
the LOGP() macro expects as the first argument.
Before this change, invoking 'logp' command with any library
specific logging sub-system would result in getting messages
printed with the fall-back DLGLOBAL sub-systems.
Change-Id: If86563e169fe1243adfa7b09c9d65d9f88c8a99e
Diffstat (limited to 'tests/logging/logging_vty_test.vty')
-rw-r--r-- | tests/logging/logging_vty_test.vty | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/logging/logging_vty_test.vty b/tests/logging/logging_vty_test.vty index 30e73abe..99e8781f 100644 --- a/tests/logging/logging_vty_test.vty +++ b/tests/logging/logging_vty_test.vty @@ -526,3 +526,6 @@ DAA ERROR This is the log message logging_vty_test# logp lglobal debug This log message is not echoed logging_vty_test# logp lglobal notice This log message is echoed DLGLOBAL NOTICE This log message is echoed + +logging_vty_test# logp lctrl notice This is a CTRL specific message +DLCTRL NOTICE This is a CTRL specific message |