[PATCH] xmon consistency clean up
Ishizaki Kou
kou.ishizaki at toshiba.co.jp
Fri Jul 27 16:11:28 EST 2007
Michael Ellerman <michael at ellerman.id.au> wrote:
> On Wed, 2007-07-25 at 16:21 +1000, Benjamin Herrenschmidt wrote:
> > On Wed, 2007-07-25 at 11:57 +0900, Ishizaki Kou wrote:
> > > This patch cleans up xmon to keep consistency.
> > >
> > > In xmon, we should use console I/O functions that are named the
same
> > > as user space stdio functions. But commit
> > > 4d404edce30f911004850d472e05a31efd751662 broke this consistency.
> > >
> > > Signed-off-by: Kou Ishizaki <kou.ishizaki at toshiba.co.jp>
> > > ---
> > >
> > > Index: linux-powerpc-git/arch/powerpc/xmon/nonstdio.c
> > >
===================================================================
> > > --- linux-powerpc-git.orig/arch/powerpc/xmon/nonstdio.c
> > > +++ linux-powerpc-git/arch/powerpc/xmon/nonstdio.c
> > > @@ -133,7 +133,7 @@ void xmon_printf(const char *format, ...
> > > xmon_write(xmon_outbuf, n);
> > > }
> > >
> > > -void xmon_puts(const char *str)
> > > +void xmon_fputs(const char *str)
> > > {
> > > xmon_write(str, strlen(str));
> >
> > Nah, keep it xmon_puts, since it doesn't take a stream argument and
> > define a "puts" for use by xmon core.
>
> But then it needs to add a newline .. and we've gone around in a
circle
> again. Funny how the trivialest of patches gets the most review.
In my opinion, our goal is providing stdio functions like fputs to
xmon.c. So, xmon_fputs need not be compatible with fputs because
xmon.c doesn't use it directly.
Best regards,
Kou Ishizaki
More information about the Linuxppc-dev
mailing list