From 5fad99e7c76b4974a45c6c1880ee63eb2839d324 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 15 Jul 2012 12:49:51 +0800 Subject: [PATCH] Modules/USB - Fixed debugging typo in devinit --- KernelLand/Modules/USB/Core/usb_devinit.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/KernelLand/Modules/USB/Core/usb_devinit.c b/KernelLand/Modules/USB/Core/usb_devinit.c index 7eb55f9d..d260f627 100644 --- a/KernelLand/Modules/USB/Core/usb_devinit.c +++ b/KernelLand/Modules/USB/Core/usb_devinit.c @@ -61,18 +61,18 @@ void USB_DeviceConnected(tUSBHub *Hub, int Port) LOG("Device Descriptor = {"); LOG(" .Length = %i", desc.Length); LOG(" .Type = %i", desc.Type); - LOG(" .USBVersion = 0x%04x", desc.USBVersion); + LOG(" .USBVersion = 0x%04x", LittleEndian16(desc.USBVersion)); LOG(" .DeviceClass = 0x%02x", desc.DeviceClass); LOG(" .DeviceSubClass = 0x%02x", desc.DeviceSubClass); LOG(" .DeviceProtocol = 0x%02x", desc.DeviceProtocol); LOG(" .MaxPacketSize = 0x%02x", desc.MaxPacketSize); - LOG(" .VendorID = 0x%04x", desc.VendorID); - LOG(" .ProductID = 0x%04x", desc.ProductID); - LOG(" .DeviceID = 0x%04x", desc.DeviceID); + LOG(" .VendorID = 0x%04x", LittleEndian16(desc.VendorID)); + LOG(" .ProductID = 0x%04x", LittleEndian16(desc.ProductID)); + LOG(" .DeviceID = 0x%04x", LittleEndian16(desc.DeviceID)); LOG(" .ManufacturerStr = Str %i", desc.ManufacturerStr); LOG(" .ProductStr = Str %i", desc.ProductStr); LOG(" .SerialNumberStr = Str %i", desc.SerialNumberStr); - LOG(" .NumConfigurations = %i", desc.SerialNumberStr); + LOG(" .NumConfigurations = %i", desc.NumConfigurations); LOG("}"); #if DEBUG -- 2.20.1