Skip to content

Commit b5131ad

Browse files
bitWarriorbitWarrior
authored andcommitted
Fixed formatting errors
1 parent 9886c0c commit b5131ad

17 files changed

Lines changed: 50 additions & 49 deletions

File tree

Fw/Dp/DpContainer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ Fw::SerializeStatus DpContainer::deserializeHeader() {
7070
if (status == Fw::FW_SERIALIZE_OK) {
7171
const FwSizeType requestedSize = sizeof this->m_userData;
7272
FwSizeType receivedSize = requestedSize;
73-
status = deserializer.deserializeTo(this->m_userData, sizeof(this->m_userData), receivedSize, Fw::Serialization::OMIT_LENGTH);
73+
status = deserializer.deserializeTo(this->m_userData, sizeof(this->m_userData), receivedSize,
74+
Fw::Serialization::OMIT_LENGTH);
7475
if (receivedSize != requestedSize) {
7576
status = Fw::FW_DESERIALIZE_SIZE_MISMATCH;
7677
}

Fw/Dp/test/util/DpContainerHeader.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ struct DpContainerHeader {
7474
// Deserialize the user data
7575
DpContainerHeader::moveDeserToOffset(file, line, deserializer, DpContainer::Header::USER_DATA_OFFSET);
7676
FwSizeType size = sizeof this->m_userData;
77-
status = deserializer.deserializeTo(this->m_userData, sizeof(this->m_userData), size, Fw::Serialization::OMIT_LENGTH);
77+
status = deserializer.deserializeTo(this->m_userData, sizeof(this->m_userData), size,
78+
Fw::Serialization::OMIT_LENGTH);
7879
DP_CONTAINER_HEADER_ASSERT_EQ(status, FW_SERIALIZE_OK);
7980
DP_CONTAINER_HEADER_ASSERT_EQ(size, sizeof this->m_userData);
8081
// Deserialize the data product state

Fw/Log/AmpcsEvrLogPacket.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ SerializeStatus AmpcsEvrLogPacket::deserializeFrom(SerialBufferBase& buffer) {
6969
}
7070

7171
FwSizeType size = buffer.getDeserializeSizeLeft();
72-
stat = buffer.deserializeTo(this->m_logBuffer.getBuffAddr(), this->m_logBuffer.getCapacity(), size, Fw::Serialization::OMIT_LENGTH);
72+
stat = buffer.deserializeTo(this->m_logBuffer.getBuffAddr(), this->m_logBuffer.getCapacity(), size,
73+
Fw::Serialization::OMIT_LENGTH);
7374
if (stat == FW_SERIALIZE_OK) {
7475
// Shouldn't fail
7576
stat = this->m_logBuffer.setBuffLen(size);

Fw/Log/LogPacket.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ SerializeStatus LogPacket::deserializeFrom(SerialBufferBase& buffer, Fw::Endiann
5454

5555
// remainder of buffer must be telemetry value
5656
FwSizeType size = buffer.getDeserializeSizeLeft();
57-
stat = buffer.deserializeTo(this->m_logBuffer.getBuffAddr(), this->m_logBuffer.getCapacity(), size, Fw::Serialization::OMIT_LENGTH);
57+
stat = buffer.deserializeTo(this->m_logBuffer.getBuffAddr(), this->m_logBuffer.getCapacity(), size,
58+
Fw::Serialization::OMIT_LENGTH);
5859
if (stat == FW_SERIALIZE_OK) {
5960
// Shouldn't fail
6061
stat = this->m_logBuffer.setBuffLen(size);

Fw/Tlm/TlmPacket.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ SerializeStatus TlmPacket::extractValue(FwChanIdType& id, Time& timeTag, TlmBuff
110110
}
111111

112112
// telemetry buffer
113-
stat = this->m_tlmBuffer.deserializeTo(buffer.getBuffAddr(), buffer.getCapacity(), bufferSize, Fw::Serialization::OMIT_LENGTH);
113+
stat = this->m_tlmBuffer.deserializeTo(buffer.getBuffAddr(), buffer.getCapacity(), bufferSize,
114+
Fw::Serialization::OMIT_LENGTH);
114115
if (stat != Fw::FW_SERIALIZE_OK) {
115116
return stat;
116117
}
@@ -142,7 +143,8 @@ SerializeStatus TlmPacket::deserializeFrom(SerialBufferBase& buffer, Fw::Endiann
142143
}
143144
// deserialize the channel value entry buffers
144145
FwSizeType size = buffer.getDeserializeSizeLeft();
145-
stat = buffer.deserializeTo(this->m_tlmBuffer.getBuffAddr(), this->m_tlmBuffer.getCapacity(), size, Fw::Serialization::OMIT_LENGTH);
146+
stat = buffer.deserializeTo(this->m_tlmBuffer.getBuffAddr(), this->m_tlmBuffer.getCapacity(), size,
147+
Fw::Serialization::OMIT_LENGTH);
146148
if (stat == FW_SERIALIZE_OK) {
147149
// Shouldn't fail
148150
stat = this->m_tlmBuffer.setBuffLen(size);

Fw/Types/SerialBuffer.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ class SerialBuffer final : public LinearBufferBase {
5959
);
6060

6161
//! Pop n bytes off the buffer
62-
SerializeStatus popBytes(U8* const addr, //!< Address of bytes to pop
62+
SerializeStatus popBytes(U8* const addr, //!< Address of bytes to pop
6363
FwSizeType buffCapacity, //!< Capacity in bytes of addr
64-
FwSizeType n //!< Number of bytes to pop
64+
FwSizeType n //!< Number of bytes to pop
6565
);
6666

6767
private:

Fw/Types/Serializable.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,8 @@ SerializeStatus LinearBufferBase::deserializeTo(U8* buff,
520520
Serializable::SizeType& length,
521521
Endianness endianMode) {
522522
FwSizeType length_in_out = static_cast<FwSizeType>(length);
523-
SerializeStatus status = this->deserializeTo(buff, buffCapacity, length_in_out, Serialization::INCLUDE_LENGTH, endianMode);
523+
SerializeStatus status =
524+
this->deserializeTo(buff, buffCapacity, length_in_out, Serialization::INCLUDE_LENGTH, endianMode);
524525
length = static_cast<Serializable::SizeType>(length_in_out);
525526
return status;
526527
}

Fw/Types/Serializable.hpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,12 +1334,14 @@ class LinearBufferBase : public SerialBufferBase {
13341334
DEPRECATED(SerializeStatus deserialize(F64& val), "Use deserializeTo(F64& val) instead");
13351335
DEPRECATED(SerializeStatus deserialize(bool& val), "Use deserializeTo(bool& val) instead");
13361336
DEPRECATED(SerializeStatus deserialize(void*& val), "Use deserializeTo(void*& val) instead");
1337-
DEPRECATED(SerializeStatus deserialize(U8* buff, FwSizeType& length, bool noLength),
1338-
"Use deserializeTo(U8* buff, FwSizeType buffCapacity, FwSizeType& length, Serialization::t mode) instead");
1337+
DEPRECATED(
1338+
SerializeStatus deserialize(U8* buff, FwSizeType& length, bool noLength),
1339+
"Use deserializeTo(U8* buff, FwSizeType buffCapacity, FwSizeType& length, Serialization::t mode) instead");
13391340
DEPRECATED(SerializeStatus deserialize(U8* buff, FwSizeType& length),
13401341
"Use deserializeTo(U8* buff, FwSizeType buffCapacity, FwSizeType& length) instead");
1341-
DEPRECATED(SerializeStatus deserialize(U8* buff, FwSizeType& length, Serialization::t mode),
1342-
"Use deserializeTo(U8* buff, FwSizeType buffCapacity, FwSizeType& length, Serialization::t mode) instead");
1342+
DEPRECATED(
1343+
SerializeStatus deserialize(U8* buff, FwSizeType& length, Serialization::t mode),
1344+
"Use deserializeTo(U8* buff, FwSizeType buffCapacity, FwSizeType& length, Serialization::t mode) instead");
13431345
DEPRECATED(SerializeStatus deserialize(Serializable& val), "Use deserializeTo(Serializable& val) instead");
13441346

13451347
#ifdef BUILD_UT

Fw/Types/StringBase.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ SerializeStatus StringBase::deserializeFrom(SerialBufferBase& buffer, Fw::Endian
103103
// Deserialize length
104104
// Fail if length exceeds max size (the initial value of actualSize)
105105
// Otherwise deserialize length bytes and set actualSize to length
106-
SerializeStatus stat = buffer.deserializeTo(reinterpret_cast<U8*>(raw), static_cast<FwSizeType>(maxSize), actualSize, Serialization::INCLUDE_LENGTH);
106+
SerializeStatus stat = buffer.deserializeTo(reinterpret_cast<U8*>(raw), static_cast<FwSizeType>(maxSize),
107+
actualSize, Serialization::INCLUDE_LENGTH);
107108
if (stat == FW_SERIALIZE_OK) {
108109
// Deserialization succeeded: null-terminate string at actual size
109110
FW_ASSERT(actualSize <= maxSize, static_cast<FwAssertArgType>(actualSize),

Svc/Ccsds/SpacePacketFramer/test/ut/SpacePacketFramerTester.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,33 +82,32 @@ void SpacePacketFramerTester::testNominalFraming() {
8282
}
8383

8484
void SpacePacketFramerTester ::testOversizedAllocatorBufferIsTrimmed() {
85-
U8 payload[16];
85+
U8 payload[16];
8686
for (U32 i = 0; i < sizeof(payload); ++i) {
8787
payload[i] = static_cast<U8>(STest::Random::lowerUpper(0, 0xFF));
8888
}
8989
Fw::Buffer data(payload, sizeof(payload));
9090
ComCfg::FrameContext context;
9191
context.set_apid(static_cast<ComCfg::Apid::T>(0x01));
9292
this->m_nextSeqCount = 0;
93-
93+
9494
// Signal the allocator handler to return a larger-than-needed buffer,
9595
// simulating a BufferManager bin that is bigger than the exact packet size.
9696
this->m_useOversizedAlloc = true;
9797
this->invoke_to_dataIn(0, data, context);
9898
this->m_useOversizedAlloc = false;
99-
99+
100100
ASSERT_from_dataOut_SIZE(1);
101101
ASSERT_from_dataReturnOut_SIZE(1);
102-
102+
103103
const FwSizeType expectedFrameSize = sizeof(payload) + SpacePacketHeader::SERIALIZED_SIZE;
104-
104+
105105
Fw::Buffer outBuffer = this->fromPortHistory_dataOut->at(0).data;
106106
// If setSize() is missing from SpacePacketFramer, getSize() returns the
107107
// oversized allocation (2 * expectedFrameSize) and this assertion fails.
108108
ASSERT_EQ(outBuffer.getSize(), expectedFrameSize);
109109
}
110110

111-
112111
// ----------------------------------------------------------------------
113112
// Output port handler overrides
114113
// ----------------------------------------------------------------------

0 commit comments

Comments
 (0)