You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2019/01/09 10:07:05 UTC
[mynewt-core] 04/08: [wip] sys/log: Update log module names
This is an automated email from the ASF dual-hosted git repository.
andk pushed a commit to branch bus-dev-test
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit a69c1453bfd1d8acfefbb10c90df6ca42dab9788
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Wed Dec 5 15:14:33 2018 +0100
[wip] sys/log: Update log module names
Do not use uppercase names so they don't scream at user when using
pretty-printing.
---
sys/log/full/src/log.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/sys/log/full/src/log.c b/sys/log/full/src/log.c
index 343cb42..f238906 100644
--- a/sys/log/full/src/log.c
+++ b/sys/log/full/src/log.c
@@ -215,23 +215,23 @@ log_module_get_name(uint8_t module)
if (module < LOG_MODULE_PERUSER) {
switch (module) {
case LOG_MODULE_DEFAULT:
- return "DEFAULT";
+ return "Default";
case LOG_MODULE_OS:
return "OS";
case LOG_MODULE_NEWTMGR:
- return "NEWTMGR";
+ return "Newtmgr";
case LOG_MODULE_NIMBLE_CTLR:
- return "NIMBLE_CTLR";
+ return "NimBLE_Ctlr";
case LOG_MODULE_NIMBLE_HOST:
- return "NIMBLE_HOST";
+ return "NimBLE";
case LOG_MODULE_NFFS:
return "NFFS";
case LOG_MODULE_REBOOT:
- return "REBOOT";
+ return "Reboot";
case LOG_MODULE_IOTIVITY:
- return "IOTIVITY";
+ return "IoTivity";
case LOG_MODULE_TEST:
- return "TEST";
+ return "Test";
}
} else if (module - LOG_MODULE_PERUSER < MYNEWT_VAL(LOG_MAX_USER_MODULES)) {
return g_log_module_list[module - LOG_MODULE_PERUSER];