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

Commit f6149068 authored by Myles Watson's avatar Myles Watson Committed by android-build-merger
Browse files

Merge "Sniffer: Print LinkLayer packet type strings" am: 50524992

am: 5ef56aa3

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


}  // namespace test_vendor_lib
}  // namespace test_vendor_lib