-
Notifications
You must be signed in to change notification settings - Fork 6
Merge #171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge #171
Changes from 4 commits
7f37e75
f584523
acb6cfe
904a916
0d2d9c0
9fae7ea
b8758d4
8b0a25a
ed665ce
8963bce
efcabe1
c093093
faa6b7b
e3be91c
3dcde8e
1e8d64d
22c7e07
b63bb70
ed35f15
f790109
f329d0a
5e13181
359fc04
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -21,6 +21,9 @@ | |||||||||||||||||||||||||||
| #include "rfc_common.h" | ||||||||||||||||||||||||||||
| #include "rfc_mgr_iarm.h" | ||||||||||||||||||||||||||||
| #include "rfc_xconf_handler.h" | ||||||||||||||||||||||||||||
| #if defined(RDK_LOGGER) | ||||||||||||||||||||||||||||
| #include "rdk_logger.h" | ||||||||||||||||||||||||||||
| #endif | ||||||||||||||||||||||||||||
| #include <fstream> | ||||||||||||||||||||||||||||
| #include <unistd.h> | ||||||||||||||||||||||||||||
| #include <sys/types.h> | ||||||||||||||||||||||||||||
|
|
@@ -39,9 +42,21 @@ namespace rfc { | |||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
| #endif | ||||||||||||||||||||||||||||
| RFCManager ::RFCManager() { | ||||||||||||||||||||||||||||
| #if defined(RDK_LOGGER) | ||||||||||||||||||||||||||||
| /* Initialize RDK Logger */ | ||||||||||||||||||||||||||||
| rdk_logger_init(0 == access(OVERIDE_DEBUG_INI_FILE, R_OK) ? OVERIDE_DEBUG_INI_FILE : DEBUG_INI_FILE); | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| static char RFCMGRLOG[] = "LOG.RDK.RFCMGR"; | ||||||||||||||||||||||||||||
| rdk_logger_ext_config_t config = { | ||||||||||||||||||||||||||||
| .pModuleName = RFCMGRLOG, /* Module name */ | ||||||||||||||||||||||||||||
| .loglevel = RDK_LOG_INFO, /* Default log level */ | ||||||||||||||||||||||||||||
| .output = RDKLOG_OUTPUT_CONSOLE, /* Output to console (stdout/stderr) */ | ||||||||||||||||||||||||||||
| .format = RDKLOG_FORMAT_WITH_TS, /* Timestamped format */ | ||||||||||||||||||||||||||||
| .pFilePolicy = NULL /* Not using file output, so NULL */ | ||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||
|
Comment on lines
+48
to
+54
|
||||||||||||||||||||||||||||
| rdk_logger_ext_config_t config = { | |
| .pModuleName = RFCMGRLOG, /* Module name */ | |
| .loglevel = RDK_LOG_INFO, /* Default log level */ | |
| .output = RDKLOG_OUTPUT_CONSOLE, /* Output to console (stdout/stderr) */ | |
| .format = RDKLOG_FORMAT_WITH_TS, /* Timestamped format */ | |
| .pFilePolicy = NULL /* Not using file output, so NULL */ | |
| }; | |
| rdk_logger_ext_config_t config{}; | |
| config.pModuleName = RFCMGRLOG; /* Module name */ | |
| config.loglevel = RDK_LOG_INFO; /* Default log level */ | |
| config.output = RDKLOG_OUTPUT_CONSOLE; /* Output to console (stdout/stderr) */ | |
| config.format = RDKLOG_FORMAT_WITH_TS; /* Timestamped format */ | |
| config.pFilePolicy = NULL; /* Not using file output, so NULL */ |
Copilot
AI
Feb 11, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rfcMgr_gtest builds rfc_manager.cpp but the gtest Makefile does not link -lrdkloggers. Introducing a direct call to rdk_logger_ext_init() is therefore likely to break unit-test linking (the symbol is not provided anywhere in this repo). Consider guarding this call under #if !defined(GTEST_ENABLE) and/or providing a test stub, or update the gtest target’s link flags accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static char RFCMGRLOG[] = "LOG.RDK.RFCMGR";is not modified anywhere and can bestatic const char*(orconstexpr const char[]) to avoid exposing a writable buffer unnecessarily.