Description
In the function FM_ChildFileInfoCmd, the comment describing the command arguments contains an incorrect command code reference:
|
** CmdArgs->CommandCode = FM_GET_DIR_LIST_FILE_CC |
/*
** Command argument usage for this command:
**
** CmdArgs->CommandCode = FM_GET_DIR_LIST_FILE_CC
** CmdArgs->Source1 = name of directory or file
** CmdArgs->FileInfoState = state of directory or file
** CmdArgs->FileInfoSize = file size, else zero
** CmdArgs->FileInfoTime = last modify time
*/
However, this function handles the Get File Info command, and the correct command code should be:
Issue
The current comment is misleading because:
FM_GET_DIR_LIST_FILE_CC refers to a different command (directory listing context)
- This can confuse developers trying to understand or maintain the code
- It may lead to incorrect assumptions when tracing command handling
Suggested Fix
Update the comment to:
CmdArgs->CommandCode = FM_GET_FILE_INFO_CC
Impact
This is a documentation/comment issue only and does not affect runtime behavior.
Description
In the function
FM_ChildFileInfoCmd, the comment describing the command arguments contains an incorrect command code reference:FM/fsw/src/fm_child.c
Line 789 in 558a776
However, this function handles the Get File Info command, and the correct command code should be:
FM_GET_FILE_INFO_CCIssue
The current comment is misleading because:
FM_GET_DIR_LIST_FILE_CCrefers to a different command (directory listing context)Suggested Fix
Update the comment to:
Impact
This is a documentation/comment issue only and does not affect runtime behavior.