Fixing the U64 vs FwSizeType argument change (#1879)

* Fixing the U64 vs FwSizeType argument change

The code changed in the time the PR was being reviewed.  This should fix the discrepancy.

* fixing spelling error
This commit is contained in:
M Starch 2023-02-03 15:36:16 -08:00 committed by GitHub
parent 36514483e3
commit 64788fa831
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -234,15 +234,16 @@ namespace Svc {
Fw::LogStringArg logStringFileName(fileName.toChar());
this->log_ACTIVITY_HI_FileSizeStarted(logStringFileName);
U64 size;
FwSizeType size_arg;
const Os::FileSystem::Status status =
Os::FileSystem::getFileSize(fileName.toChar(), size);
Os::FileSystem::getFileSize(fileName.toChar(), size_arg);
if (status != Os::FileSystem::OP_OK) {
this->log_WARNING_HI_FileSizeError(
logStringFileName,
status
);
} else {
U64 size = static_cast<U64>(size_arg);
this->log_ACTIVITY_HI_FileSizeSucceeded(logStringFileName, size);
}
this->emitTelemetry(status);

View File

@ -65,7 +65,7 @@ namespace Svc {
const FwOpcodeType opCode, //!< The opcode
const U32 cmdSeq, //!< The command sequence number
const Fw::CmdStringArg& fileName, //!< The file to remove
const bool ignoreErrors //!< Ignore non-existent files
const bool ignoreErrors //!< Ignore missing files
);
//! Implementation for MoveFile command handler