Add debug logging to overflow/error paths, fix pipeline=2 drop

This commit is contained in:
Ian Gulliver
2026-04-11 09:48:25 +09:00
parent f7baf60249
commit aa349e1a36
5 changed files with 24 additions and 11 deletions

View File

@@ -22,7 +22,10 @@ static std::vector<net_frame_callback> frame_callbacks;
void net_send_raw(std::span<const uint8_t> data) {
dlog_if_slow("net_send_raw", 1000, [&]{
w6300::send(raw_socket, data);
auto result = w6300::send(raw_socket, data);
if (!result)
dlogf("w6300 send failed: %zu bytes, err %d",
data.size(), static_cast<int>(result.error()));
});
}