[Top] [All Lists]

Re: printk

To: "John D. Davis" <>
Subject: Re: printk
From: Pete Popov <>
Date: Fri, 03 Aug 2001 14:22:20 -0700
Cc: SGI MIPS list <>, Debian MIPS list <>
References: <Pine.GSO.4.31.0108031412450.675-100000@myth1.Stanford.EDU>
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010801
John D. Davis wrote:
Does anyone know off hand, the earlies point that I can use printk?

Well, you can use them from the very beginning, but you won't see the output until after serial console init (if you're using a serial console).

I added some printk statements to driver/char/console.c and the resulting
kernel hangs with only the logo showing and no text.  Is prom_printf
something that I should use instead. I put some printk statements in
tty_io.c and kernel/printk.c and those compiled kernels work.

I like using simple puts and put32 routines that print a string and a 32 bit number. These routines bang directly on the uart so you see the prints immediately, before printk works. Take a look at arch/mips/au1000/common/puts.c.


<Prev in Thread] Current Thread [Next in Thread>