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

Marcel Moolenaar marcel at xcllnt.net
Tue Jul 27 08:06:52 PDT 2004


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 at xcllnt.net


More information about the freebsd-ia64 mailing list