Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50524992 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Sniffer: Print LinkLayer packet type strings"

parents f1a0304d 0a990166
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -47,8 +47,10 @@ void Sniffer::IncomingPacket(model::packets::LinkLayerPacketView packet) {
  if (!match_source && !match_dest) {
    return;
  }
  LOG_INFO("%s %s -> %s (Type %d)", (match_source ? (match_dest ? "<->" : "<--") : "-->"), source.ToString().c_str(),
           dest.ToString().c_str(), static_cast<int>(packet.GetType()));
  LOG_INFO("%s %s -> %s (Type %s)",
           (match_source ? (match_dest ? "<->" : "<--") : "-->"),
           source.ToString().c_str(), dest.ToString().c_str(),
           model::packets::PacketTypeText(packet.GetType()).c_str());
}

}  // namespace test_vendor_lib