20#include "pw_bytes/span.h"
21#include "pw_hex_dump/hex_dump.h"
22#include "pw_log/log.h"
23#include "pw_log/options.h"
79template <std::
size_t kBytesPerLine = 16>
80inline void LogBytes(
int log_level, pw::ConstByteSpan bytes) {
83 const std::size_t kMaxLogLineLength = 8 + 4 * kBytesPerLine;
85 if (kBytesPerLine == 0) {
89 std::array<char, kMaxLogLineLength> temp{};
95 .prefix_mode = pw::dump::FormattedHexDumper::AddressMode::kOffset};
97 if (hex_dumper.BeginDump(bytes).ok()) {
98 while (hex_dumper.DumpLine().ok()) {