Re: CFShow equivalent?
Re: CFShow equivalent?
- Subject: Re: CFShow equivalent?
- From: "Herb Petschauer" <email@hidden>
- Date: Tue, 19 Jun 2007 15:59:02 -0700
I'm not seeing anything in the headers, you could bang together something like (typed in gmail where tab doesn't do what I expect...):
void OSShow( OSObject *pOSObj )
{
OSSerialize *s = OSSerialize::withCapacity( 5 );
// add error checking
pOSObj->retain(); // make sure the object sticks around
if ( pOSObj->serialize(s) )
{
IOLog( "Dumping %p: %s\n", pOSObj, s->text() );
s->release();
s = NULL;
}
pOSObj->release(); // release our hold
}
Cheers,
-H.
On 19/06/07, Eric Long <email@hidden> wrote:
Is there an equivalent to CFShow() available in the kernel for OSObjects?
Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (
email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-kernel/bogvard
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden