Date: Sat, 11 Nov 2000 07:30:53 -0800 (PST) From: opentrax@email.com To: imp@village.org Cc: duan@cs.umn.edu, freebsd-hackers@FreeBSD.ORG Subject: Re: printf() Message-ID: <200011111530.HAA02982@spammie.svbug.com> In-Reply-To: <200011101949.MAA50988@harmony.village.org>
index | next in thread | previous in thread | raw e-mail
On 10 Nov, Warner Losh wrote:
> In message <Pine.LNX.4.10.10011092306100.24982-100000@barber.cs.umn.edu> Zhenhai Duan writes:
> : Does the kernel function printf() flushes the output immediately, or it is
> : possible some data is buffered somewhere and gets lost without printing
> : to the console? like the corresponding funtion in the c library.
>
> Yes. It can be buffered, but that's a driver level thing. I've seen
> serial consoles where things crashed after a printf I put in and never
> saw.
>
> I've not seen anything similar on video consoles.
>
I want to be clear on what you're saying Warner.
Are you saying that you put a printf() after your crash point,
but never saw your printf(). So in your code it might have
looked like:
printf("foo do foo\n");
crash_here();
printf("after the crash\n");
And never see the statement "foo do foo\n";
Is that correct?
Jessem.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011111530.HAA02982>
