Skip to content

Conversation

@Vismalskumar0
Copy link
Contributor

RDKEMW-12334-The log entries in remote-debugger.log

RDKEMW-12334-The log entries in remote-debugger.log differ between C binary files and script files when compared
@Vismalskumar0 Vismalskumar0 requested a review from a team as a code owner January 13, 2026 07:28
@github-actions
Copy link

Code Coverage Summary

                               Total:|83.9%   5080|97.7%  1301|    -      0

Copilot AI review requested due to automatic review settings January 14, 2026 09:58
@github-actions
Copy link

Code Coverage Summary

                               Total:|83.9%   5080|97.7%  1301|    -      0

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates log entries in the remote-debugger.log file to match the format and content of the original shell script implementation. The changes improve logging consistency and add proper Apache 2.0 licensing to the uploadRRDLogs.c file.

Changes:

  • Updated copyright header in uploadRRDLogs.c from skeleton comment to proper Apache 2.0 license
  • Modified log messages throughout the upload orchestration flow to match the original shell script format
  • Changed log level from DEBUG to INFO for archive filename generation in rrd_archive.c
  • Added MAC address setup to L2 test script for improved test coverage

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/uploadRRDLogs.c Updated copyright header and revised log messages to match shell script format, improving traceability and consistency
src/rrd_archive.c Changed filename generation log from DEBUG to INFO level for better visibility
run_l2.sh Added MAC address to test environment for L2 testing

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

mkdir -p /media/apps/RDK-RRD-Test/etc/rrd

touch /media/apps/RDK-RRD-Test/etc/rrd/remote_debugger.json
echo "AA:BB:CC:dd:EE:FF" >> /tmp/.estb_mac
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The MAC address format "AA:BB:CC:dd:EE:FF" contains inconsistent casing with lowercase 'dd' while other octets use uppercase. MAC addresses should use consistent casing. Based on the codebase pattern seen in rrd_sysinfo.c (e.g., "D4:52:EE:58:F6:AE"), all hexadecimal digits should be uppercase for consistency.

Suggested change
echo "AA:BB:CC:dd:EE:FF" >> /tmp/.estb_mac
echo "AA:BB:CC:DD:EE:FF" >> /tmp/.estb_mac

Copilot uses AI. Check for mistakes.
// 6.5. Handle LOGUPLOAD_ENABLE special case (matching shell script lines 128-131)
if (strcmp(issue_type_sanitized, "LOGUPLOAD_ENABLE") == 0) {
RDK_LOG(RDK_LOG_INFO, LOG_REMDEBUG, "%s: Handling LOGUPLOAD_ENABLE - checking for live logs\n", __FUNCTION__);
RDK_LOG(RDK_LOG_INFO, LOG_REMDEBUG, "%s: Check and upload live device logs for the issuetype\n", __FUNCTION__);
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The log message uses "issuetype" (all lowercase) which is inconsistent with other log messages that use "ISSUETYPE" or "issue_type". For consistency with the codebase style, this should be "issue type" (two words) or match the variable naming convention used elsewhere.

Suggested change
RDK_LOG(RDK_LOG_INFO, LOG_REMDEBUG, "%s: Check and upload live device logs for the issuetype\n", __FUNCTION__);
RDK_LOG(RDK_LOG_INFO, LOG_REMDEBUG, "%s: Check and upload live device logs for the issue type\n", __FUNCTION__);

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

Code Coverage Summary

                               Total:|83.9%   5080|97.7%  1301|    -      0

Copilot AI review requested due to automatic review settings January 14, 2026 12:13
@github-actions
Copy link

Code Coverage Summary

                               Total:|83.9%   5080|97.7%  1301|    -      0

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants