Skip to content

Commit

Permalink
Log byte count
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Jan 20, 2024
1 parent 6260a77 commit a06d453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/controllers/generic_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ void GenericController::Receive()
}
// Assume that data less than < 256 bytes in DATA OUT are parameters to a non block-oriented command
else if (IsDataOut() && !GetOffset() && len < 256 && spdlog::get_level() == spdlog::level::trace) {
LogTrace(fmt::format("Command parameter data:\n{}", FormatBytes(GetBuffer(), len)));
LogTrace(fmt::format("{} byte(s) of command parameter data:\n{}", len, FormatBytes(GetBuffer(), len)));
}
}

Expand Down

0 comments on commit a06d453

Please sign in to comment.