From 99195e3c36f84379158431273a20c6fe46517188 Mon Sep 17 00:00:00 2001 From: PulkoMandy Date: Tue, 17 Mar 2020 21:27:27 +0100 Subject: [PATCH] bootloader ethernet: fix tracing --- src/system/boot/loader/net/Ethernet.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/system/boot/loader/net/Ethernet.cpp b/src/system/boot/loader/net/Ethernet.cpp index e2724bc89e..a301bafb87 100644 --- a/src/system/boot/loader/net/Ethernet.cpp +++ b/src/system/boot/loader/net/Ethernet.cpp @@ -123,7 +123,8 @@ status_t EthernetService::Send(const mac_addr_t &destination, uint16 protocol, 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))); if (!fInterface || !fSendBuffer) @@ -199,7 +200,7 @@ EthernetService::ProcessIncomingPackets() } 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), bytesReceived - (ssize_t)sizeof(ether_header)));