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



Title: RE: printf logs are not getting printed properly on system.log

Hello,

I've encountered this issue too. Specifically, when a lot of calls to printf() have been made, the output looks messy. eg :

printf("foo\n");
printf("bar\n");

Ends up written in system.log as :

fobaro

(just a banal example).

I checked printf() implementation and it seems that loocking *is* handled correctly so I'm really wondering what's the problem behind it.

-----Original Message-----
From: darwin-kernel-bounces+jernej.azarija=email@hidden on behalf of Jeremy Pereira
Sent: Thu 8/23/2007 9:35 AM
To: JanakiRam
Cc: email@hidden
Subject: Re: printf logs are not getting printed properly on system.log

On 23 Aug 2007, at 06:05, JanakiRam 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.

I've seen the same problem.  I assumed it was because of overrunning 
some buffer somewhere i.e. producing too much output for the kernel 
logging system to cope with.


>
>
> -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

 _______________________________________________
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: Jeremy Pereira <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.