From 2e75ef07fed83a34d80c0be3cae253f3a7a1e603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ximo=20Casta=C3=B1eda?= Date: Mon, 16 May 2022 15:59:42 +0200 Subject: [PATCH] Fix 32bit build Change-Id: If7c2da0a28302f5535eda25999b1f877cbca1152 Reviewed-on: https://review.haiku-os.org/c/haiku/+/5315 Reviewed-by: waddlesplash --- .../drivers/network/ether/usb_rndis/RNDISDevice.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/add-ons/kernel/drivers/network/ether/usb_rndis/RNDISDevice.cpp b/src/add-ons/kernel/drivers/network/ether/usb_rndis/RNDISDevice.cpp index 44a30b0c01..b23b5ea6cb 100644 --- a/src/add-ons/kernel/drivers/network/ether/usb_rndis/RNDISDevice.cpp +++ b/src/add-ons/kernel/drivers/network/ether/usb_rndis/RNDISDevice.cpp @@ -300,18 +300,18 @@ RNDISDevice::Read(uint8 *buffer, size_t *numBytes) } if (fReadHeader[9] != 0) { - TRACE_ALWAYS("Received frame has non-0 reserved fied %08x\n", fReadHeader[9]); + TRACE_ALWAYS("Received frame has non-0 reserved field %08" B_PRIx32 "\n", fReadHeader[9]); } *numBytes = fReadHeader[3]; memcpy(buffer, fReadHeader + 11, fReadHeader[3]); - TRACE("Received data packet len %08x data [off %08x len %08x]\n", - fReadHeader[1], fReceivHeader[2], fReadHeader[3]); + TRACE("Received data packet len %08" B_PRIx32 " data [off %08" B_PRIx32 " len %08" B_PRIx32 "]\n", + fReadHeader[1], fReadHeader[2], fReadHeader[3]); // Advance to next packet fReadHeader += fReadHeader[1]; - if ((uint8*)fReadHeader - fReadBuffer >= fActualLengthRead) + if ((uint32)((uint8*)fReadHeader - fReadBuffer) >= fActualLengthRead) fReadHeader = NULL; return B_OK; @@ -840,7 +840,7 @@ RNDISDevice::_NotifyCallback(void *cookie, int32 status, void *_data, uint32* data = (uint32*)_data; uint32 notification = data[0]; uint32 reserved = data[1]; - TRACE("Received notification %" PRIx32 " %" PRIx32 "\n", notification, reserved); + TRACE("Received notification %" B_PRIx32 " %" B_PRIx32 "\n", notification, reserved); #endif release_sem_etc(device->fNotifyControlSem, 1, B_DO_NOT_RESCHEDULE); }