From owner-freebsd-hackers Fri Nov 10 11:49:52 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 1C91937B4C5 for ; Fri, 10 Nov 2000 11:49:49 -0800 (PST) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.0/8.11.0) with ESMTP id eAAJnlg26639; Fri, 10 Nov 2000 12:49:48 -0700 (MST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id MAA50988; Fri, 10 Nov 2000 12:49:47 -0700 (MST) Message-Id: <200011101949.MAA50988@harmony.village.org> To: Zhenhai Duan Subject: Re: printf() Cc: freebsd-hackers@FreeBSD.ORG In-reply-to: Your message of "Thu, 09 Nov 2000 23:08:46 CST." References: Date: Fri, 10 Nov 2000 12:49:47 -0700 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message