Re: Problem with pcidump.c
Re: Problem with pcidump.c
- Subject: Re: Problem with pcidump.c
- From: nithesh salian <email@hidden>
- Date: Thu, 23 Sep 2010 11:05:56 +0530
Hi Fritz,
I am getting the following error.
kIOReturnUnsupported
how can i resolve this?
On Wed, Sep 22, 2010 at 8:48 PM, Fritz Anderson
<email@hidden> wrote:
On 22 Sep 2010, at 6:08 AM, nithesh salian wrote:
Assertion failed: (kIOReturnSuccess == status), function main, file pcidump.c, line 462.
The context is:
io_registry_entry_t service;
io_connect_t connect;
kern_return_t status;
service = IOServiceGetMatchingService(kIOMasterPortDefault,
IOServiceMatching("AppleACPIPlatformExpert"));
assert(service);
if (service)
{
status = IOServiceOpen(service, mach_task_self(), 0, &connect);
IOObjectRelease(service);
assert(kIOReturnSuccess == status);
}
… at the very beginning of main(), so the rest of the file isn't relevant.
So you know that status does not equal kIOReturnSuccess. What does it equal? You are using a debugger, of course?
— F
--
Regards,
Nithesh Gangadhar Salian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden