Skip to content

Commit

Permalink
Removed extra newlines in M122 report SBC section
Browse files Browse the repository at this point in the history
  • Loading branch information
dc42 committed Feb 10, 2025
1 parent 4c8d749 commit b034fd4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/SBC/DataTransfer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,9 +527,9 @@ void DataTransfer::InitFromTask() noexcept

void DataTransfer::Diagnostics(const StringRef& reply) noexcept
{
reply.lcatf("Transfer state: %d, failed transfers: %u, checksum errors: %u\n", (int)state, failedTransfers, checksumErrors);
reply.lcatf("RX/TX seq numbers: %d/%d\n", (int)rxHeader.sequenceNumber, (int)txHeader.sequenceNumber);
reply.lcatf("SPI underruns %u, overruns %u\n", spiTxUnderruns, spiRxOverruns);
reply.lcatf("Transfer state: %d, failed transfers: %u, checksum errors: %u", (int)state, failedTransfers, checksumErrors);
reply.lcatf("RX/TX seq numbers: %d/%d", (int)rxHeader.sequenceNumber, (int)txHeader.sequenceNumber);
reply.lcatf("SPI underruns %u, overruns %u", spiTxUnderruns, spiRxOverruns);
}

const PacketHeader *DataTransfer::ReadPacket() noexcept
Expand Down
6 changes: 3 additions & 3 deletions src/SBC/SbcInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1378,10 +1378,10 @@ void SbcInterface::Diagnostics(const StringRef& reply) noexcept
{
reply.copy( "=== SBC interface ===");
transfer.Diagnostics(reply);
reply.lcatf("State: %d, disconnects: %" PRIu32 ", timeouts: %" PRIu32 " total, %" PRIu32 " by SBC, IAP RAM available 0x%05" PRIx32 "\n", (int)state, numDisconnects, numTimeouts, numSbcTimeouts, iapRamAvailable);
reply.lcatf("Buffer RX/TX: %d/%d-%d, open files: %u\n", (int)rxPointer, (int)txPointer, (int)txEnd, numOpenFiles);
reply.lcatf("State: %d, disconnects: %" PRIu32 ", timeouts: %" PRIu32 " total, %" PRIu32 " by SBC, IAP RAM available 0x%05" PRIx32, (int)state, numDisconnects, numTimeouts, numSbcTimeouts, iapRamAvailable);
reply.lcatf("Buffer RX/TX: %d/%d-%d, open files: %u", (int)rxPointer, (int)txPointer, (int)txEnd, numOpenFiles);
#ifdef TRACK_FILE_CODES
reply.lcatf("File codes read/handled: %d/%d, file macros open/closing: %d %d\n", (int)fileCodesRead, (int)fileCodesHandled, (int)fileMacrosRunning, (int)fileMacrosClosing);
reply.lcatf("File codes read/handled: %d/%d, file macros open/closing: %d %d", (int)fileCodesRead, (int)fileCodesHandled, (int)fileMacrosRunning, (int)fileMacrosClosing);
#endif
}

Expand Down

0 comments on commit b034fd4

Please sign in to comment.