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: Using USB debug kit with OS X SDK?



To follow up on this, I found a simple solution. Just #define DEBUG_LEVEL to be something other than DEBUG_LEVEL_PRODUCTION before including IOUSBLog.h. For example:

#define DEBUG_LEVEL DEBUG_LEVEL_BETA
#include <IOKit/usb/IOUSBLog.h>

The version of IOUSBLog.h that is installed by the USB debug kit defines DEBUG_LEVEL to DEBUG_LEVEL_BETA if it hasn't already been defined; the version that ships with the system (and SDK) headers sets it to DEBUG_LEVEL_PRODUCTION. This is why the logs do nothing if you are using one of the OS X SDK's.

Jim

Is it possible to use the USB debug kits when your project is using
one of the OS X SDK's?  In my case, I'm building on 10.3.9 with XCode
1.5, using the 10.2.8 SDK, and my USBLog calls aren't showing up.
This all worked fine when I was building on 10.2.8 using
ProjectBuilder (no OS X SDK involved).  The readme for the logging
version of IOUSBFamily says that it overwrites header files for
IOUSBFamily.  I assume these headers are overwritten in the system
location, and not the SDK location.  If this is the case, any hints
for using this short of manually copying the modified files over?
And if that is the only solution, which version of the modified files
do I copy?  The ones it would install for the OS version of the SDK
I'm using, or the OS version that I'm testing on?

Thanks,
Jim


_______________________________________________ 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


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.