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: printf logs are not getting printed properly on system.log



HI Rodney,

         Thanks for the initial response.

        I'm using the printf function defined at kernel. Is there any similar way for printf ( similar to IOLog).
   
        Can i use the IOLog in Generic Kernel Extension ?

       Please clarify my queries. Thanks in advance.

-JanakiRam.
 

On 8/23/07, Rodney < email@hidden> wrote:
Dear Janaki,
Hope you are using IOLog for printing.
IOLog() is not synchronous normally, which means it is possible to miss log messages in the case of a kernel panic. However, setting the kIOLogSynchronous bit (0x00200000 ) in the io boot-time argument makes the console output synchronous. The file iokit/IOKit/IOKitDebug.h enumerates several other bits that can be set in the io argument to enable specific types of I/O Kit log messages.
Rohit

 
On 8/23/07, JanakiRam < email@hidden> wrote:
Hi ALL,

         I'm newbie to this kernel prorgamming. Please clarify my following query.

         I'm using printf for logging messages from my kext. One observation is all my logs are not getting printed when i start my kext using kextload. Its not consitent  , how many logs are going to get printed every time i load the kext.

         Please help me to solve this. Thanks in Advance.

-JanakiRam.

 _______________________________________________
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/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:
http://lists.apple.com/mailman/options/darwin-kernel/email@hidden

This email sent to email@hidden

References: 
 >printf logs are not getting printed properly on system.log (From: JanakiRam <email@hidden>)
 >Re: printf logs are not getting printed properly on system.log (From: Rodney <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.