linux-mips
[Top] [All Lists]

Re: [PATCH] kill prom_printf

To: Geert Uytterhoeven <geert@linux-m68k.org>
Subject: Re: [PATCH] kill prom_printf
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Date: Tue, 17 Jun 2003 18:05:57 +0200 (MET DST)
Cc: Ladislav Michl <ladis@linux-mips.org>, Juan Quintela <quintela@trasno.org>, Linux/MIPS Development <linux-mips@linux-mips.org>
In-reply-to: <Pine.GSO.4.21.0306171704010.17930-100000@vervain.sonytel.be>
Organization: Technical University of Gdansk
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
On Tue, 17 Jun 2003, Geert Uytterhoeven wrote:

> >  So I can just call prom_printf("%s", string), right?  This would solve
> > this shortcoming. 
> 
> More or less. The caveat is that console->write() is not called with a
> NULL-terminated string, but with a pointer and a length.

 Well, I can't remember if the DEC's printf() supports "%<width>s", but
even if it doesn't, we can use a helper local buffer.

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +


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