[Top] [All Lists]

Re: [PATCH] kill prom_printf

To: Ladislav Michl <>
Subject: Re: [PATCH] kill prom_printf
From: "Maciej W. Rozycki" <>
Date: Tue, 17 Jun 2003 16:17:35 +0200 (MET DST)
Cc: Juan Quintela <>,
In-reply-to: <>
Organization: Technical University of Gdansk
Original-recipient: rfc822;
On Tue, 17 Jun 2003, Ladislav Michl wrote:

> >  There is also that minor implementation problem -- how to pass varargs
> > from printk() to ROM's printf()?  At least the firmware of the DECstation
> > implements a full-featured printf() as in the C library.
> you are implementing early console not printf (sorry again for confusion),
> so there is no need to pass varargs anywhere. btw, early_printk() as known
> from other archs is supposed to die in future. printk() should be used
> everywhere.

 Hmm, calling the firmware for each character separately will certainly be
terribly slow, though it may be negligible as normally few messages will
be output this way.  And since the call to prom_printf() is so cheap for
the DECstation, I'm going to retain the function for real low-level
debugging, whether otherwise used or not. 

 BTW,I just realized console output via the firmware is mandatory for the
DECstation -- we have cases where the kernel is not going to be started
far enough to have any console set up because of a misconfiguration.  With
current prom_printf() implementation the reason is output to the console
and a user has a chance to know why.  With an optional early printk, he'll
just see the kernel return to the firmware for no apparent reason without
any output.

+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+        e-mail:, PGP key available        +

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