Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't seem to get USB logging to work



I'm now starting to think my kext is not loading after all. I've duped some of the existing log lines that I thought were showing up in the log but I'm only seeing single copies of them.

So, maybe I have a matching problem? Here are the relevant lines from the USB log:

8.386 [5] Finding driver for interface #0 of Foo Keyboard, matching personality using com.foo.FooUSBHIDDriver, score: 90000
8.386 [6] Matched: idVendor (1118) idProduct (176) bConfigurationValue (1) bInterfaceNumber (0)
8.386 [6] Didn't Match: nothing
8.387 [6] IOUSBInterface[0x24da400]::open calling super::open with NO gate
8.387 [3] +IOUSBInterface[0x24da400]::handleOpen (device Foo Keyboard)
8.387 [6] Foo Keyboard[0x2479700]:FindConfig (1)
8.387 [6] Foo Keyboard[0x2479700]:FindConfig (1)
8.387 [5] AppleUSBOHCI[0x1cdf000]: UIMCreateInterruptEndpoint ( Addr: 4:1, max=8, dir=1, rate=10, lo)
8.387 [6] AppleUSBOHCI[0x1cdf000]: UIMCreateInterruptEndpoint: offset = 54
8.387 [6] Foo Keyboard[0x2479700]:FindConfig (1)
8.387 [3] -IOUSBInterface[0x24da400]::handleOpen (device Foo Keyboard): successful
8.387 [3] -IOUSBInterface[0x24da400]::open returns 1
8.387 [6] Foo Keyboard[0x2479700]:FindConfig (1)
8.387 [6] Foo Keyboard[0x2479700]:FindConfig (1)
8.392 [5] Foo Keyboard[0x2479700]::GetStringDescriptor Got string descriptor 1, length 20, got 20
8.396 [5] Foo Keyboard[0x2479700]::GetStringDescriptor Got string descriptor 2, length 76, got 76
8.396 [6] Foo Keyboard[0x2479700]:FindConfig (1)
8.402 [1] [0x2477c00]::start - USB HID Interface #0 of device Foo Keyboard @ 4 (0x1b110000)
8.402 [3] +IOUSBUserClientInit[0x245d780]::start(0x24da400) - provider = IOUSBInterface
8.402 [3] +IOUSBUserClientInit[0x245d780]::MergeDictionary (0x201f300)IntoProvider(0x24da400)
8.402 [3] IOUSBUserClientInit [0x245d780]::MergeDictionaryIntoProvider merging "IOUserClientClass"
8.402 [3] IOUSBUserClientInit [0x245d780]::MergeDictionaryIntoProvider setting property IOUserClientClass
8.402 [3] IOUSBUserClientInit [0x245d780]::MergeDictionaryIntoProvider merging "IOCFPlugInTypes"
8.402 [3] IOUSBUserClientInit [0x245d780]::MergeDictionaryIntoProvider source dictionary had IOCFPlugInTypes as a dictionary (0x201f280)
8.402 [3] IOUSBUserClientInit [0x245d780]::MergeDictionaryIntoProvider setting property IOCFPlugInTypes
8.402 [3] -IOUSBUserClientInit [0x245d780]::MergeDictionaryIntoProvider(0x24da400, 0x201f300) result 1
8.402 [3] -IOUSBUserClientInit[0x245d780]::start


I thought my kext was loading since I got the high score and a kextunload of my driver would cause the keyboard to stop working, but I can't actually tell if it was loaded from the log and none of my log changes show up...

Suggestions?

Dave

On Jun 15, 2005, at 1:57 PM, Dave Camp wrote:

Yes, I've set that to 1 (development level). I tried it at the top of my source file, and later as a compiler option (-D). Neither seemed to help.

Dave

On Jun 14, 2005, at 7:47 PM, Fernando Urbina wrote:


Did you define DEBUG_LEVEL in your driver BEFORE including IOUSBLog.h? See IOUSBLog.h for the valid value, but I think any non-zero value will cause logs to be printed.

--
Fernando Urbina
USB Technology Team
Apple Computer, Inc.

On Jun 14, 2005, at 7:14 PM, Dave Camp wrote:



My problem is, none of my calls to USBLog are showing up in USB Prober. Doesn't seem matter what log level I set in my code or in the prober. I see lots of other stuff in the prober log, just none of my calls.








---
It's not denial. I'm just very particular about the reality I choose to accept. -Calvin


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden



---
It's not denial. I'm just very particular about the reality I choose to accept. -Calvin


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden
References: 
 >Can't seem to get USB logging to work (From: Dave Camp <email@hidden>)
 >Re: Can't seem to get USB logging to work (From: Fernando Urbina <email@hidden>)
 >Re: Can't seem to get USB logging to work (From: Dave Camp <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.