bootloader ethernet: fix tracing
This commit is contained in:
parent
6d72c4188e
commit
99195e3c36
@ -123,7 +123,8 @@ status_t
|
|||||||
EthernetService::Send(const mac_addr_t &destination, uint16 protocol,
|
EthernetService::Send(const mac_addr_t &destination, uint16 protocol,
|
||||||
ChainBuffer *buffer)
|
ChainBuffer *buffer)
|
||||||
{
|
{
|
||||||
TRACE(("EthernetService::Send(to: %012llx, proto: 0x%hx, %lu bytes)\n",
|
TRACE(("EthernetService::Send(to: %012" B_PRIx64 ", proto: 0x%hx, %"
|
||||||
|
PRIu32 " bytes)\n",
|
||||||
destination.ToUInt64(), protocol, (buffer ? buffer->TotalSize() : 0)));
|
destination.ToUInt64(), protocol, (buffer ? buffer->TotalSize() : 0)));
|
||||||
|
|
||||||
if (!fInterface || !fSendBuffer)
|
if (!fInterface || !fSendBuffer)
|
||||||
@ -199,7 +200,7 @@ EthernetService::ProcessIncomingPackets()
|
|||||||
}
|
}
|
||||||
|
|
||||||
TRACE(("EthernetService::ProcessIncomingPackets(): received ethernet "
|
TRACE(("EthernetService::ProcessIncomingPackets(): received ethernet "
|
||||||
"frame: to: %012llx, proto: 0x%hx, %ld bytes\n",
|
"frame: to: %012" B_PRIx64 ", proto: 0x%hx, %" B_PRIuSIZE " bytes\n",
|
||||||
header->destination.ToUInt64(), ntohs(header->type),
|
header->destination.ToUInt64(), ntohs(header->type),
|
||||||
bytesReceived - (ssize_t)sizeof(ether_header)));
|
bytesReceived - (ssize_t)sizeof(ether_header)));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user