Re: "printf" doesn't work in ia64_init()?

[ Available lists | Index of freebsd-ia64 | Month of Jul 2004 | Week of 27 Jul 2004 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Marcel Moolenaar <marcel@xcllnt.net>
Date
27 Jul 2004 15:06:52
Subject
Re: "printf" doesn't work in ia64_init()?
Message-ID
20040727150651.GA2285@dhcp50.pn.xcllnt.net


[ Hide this part ]
On Tue, Jul 27, 2004 at 08:38:00AM +0000, M.M. Yang wrote:
> Hi all,
> I'm reading the function ia64_init()<sys/ia64/ia64/machdep.c>, 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


Elapsed time: 0.720 seconds