From owner-freebsd-hackers Sat Nov 11 7:30:28 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from spammie.svbug.com (mg136-070.ricochet.net [204.179.136.70]) by hub.freebsd.org (Postfix) with ESMTP id 2DCE837B479 for ; Sat, 11 Nov 2000 07:30:24 -0800 (PST) Received: from spammie.svbug.com (localhost.mozie.org [127.0.0.1]) by spammie.svbug.com (8.9.3/8.9.3) with ESMTP id HAA02982; Sat, 11 Nov 2000 07:30:54 -0800 (PST) (envelope-from jessem@spammie.svbug.com) Message-Id: <200011111530.HAA02982@spammie.svbug.com> Date: Sat, 11 Nov 2000 07:30:53 -0800 (PST) From: opentrax@email.com Reply-To: opentrax@email.com Subject: Re: printf() To: imp@village.org Cc: duan@cs.umn.edu, freebsd-hackers@FreeBSD.ORG In-Reply-To: <200011101949.MAA50988@harmony.village.org> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 10 Nov, Warner Losh wrote: > In message 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