From owner-freebsd-ia64@FreeBSD.ORG Tue Jul 27 15:06:52 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 884AD16A4CE; Tue, 27 Jul 2004 15:06:52 +0000 (GMT) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id F15D243D41; Tue, 27 Jul 2004 15:06:51 +0000 (GMT) (envelope-from marcel@xcllnt.net) Received: from dhcp50.pn.xcllnt.net (dhcp50.pn.xcllnt.net [192.168.4.250]) by ns1.xcllnt.net (8.12.11/8.12.11) with ESMTP id i6RF6pGZ061097; Tue, 27 Jul 2004 08:06:51 -0700 (PDT) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp50.pn.xcllnt.net (localhost [127.0.0.1]) i6RF6pCJ002364; Tue, 27 Jul 2004 08:06:51 -0700 (PDT) (envelope-from marcel@dhcp50.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp50.pn.xcllnt.net (8.12.11/8.12.11/Submit) id i6RF6p38002363; Tue, 27 Jul 2004 08:06:51 -0700 (PDT) (envelope-from marcel) Date: Tue, 27 Jul 2004 08:06:51 -0700 From: Marcel Moolenaar To: "M.M. Yang" Message-ID: <20040727150651.GA2285@dhcp50.pn.xcllnt.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org cc: freebsd-ia64@freebsd.org Subject: Re: "printf" doesn't work in ia64_init()? X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jul 2004 15:06:52 -0000 On Tue, Jul 27, 2004 at 08:38:00AM +0000, M.M. Yang wrote: > Hi all, > I'm reading the function ia64_init(), and try > to use "printf" to output some information. But if I put "printf" before > "msgbufinit()", I won't see any word I expect by using dmesg. That's correct. > In the same function after "cninit()", it comments: > /* > * Initialize the console before we print anything out. > */ > cninit(); > > /* OUTPUT NOW ALLOWED */ > > So I have thought "printf" should work after cninit(). But now it seems to > work only after msgbufinit(). printf() does work right after cninit(). The output just doesn't get saved in the message buffer. Hence, dmesg(8) doesn't show it, but it certainly gets printed to the system console. Look at the console... -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net