From: Timur Tabi <timur@freescale.com>
To: michael@ellerman.id.au
Cc: Olof Johansson <olof@lixom.net>,
Paul Mackerras <paulus@samba.org>,
linuxppc-dev@ozlabs.org
Subject: Re: [PATCH] Update udbg_progress() to display the integer
Date: Wed, 07 Feb 2007 20:07:47 -0600 [thread overview]
Message-ID: <45CA85F3.5030004@freescale.com> (raw)
In-Reply-To: <1170894706.4656.2.camel@concordia.ozlabs.ibm.com>
Michael Ellerman wrote:
>> Perhaps we should define ppc_md.progress() such that it never sends the output
>> to the same place as printk(). If the only output device is the serial port,
>> and printk() already outputs there, then ppc_md.progress() should do nothing.
>> This would eliminate any "accidental" use of ppc_md.progress(), when printk() is
>> the better choice.
>
> But then you'll end up with code that does:
>
> printk("Setup done");
> ppc_md.progress("Setup done");
Technically that's true, but I think this will be rare. The printk()
messages are supposed to be more verbose than the progress() messages.
Besides, progress() always takes two parameters - a string and a number.
So it's not exactly a clone of printk().
> Because on systems where the output _does_ go to two places, you'll want
> the messages to appear in both.
>
> I don't see what the problem is with progress messages going to the
> printk buffer?
The problem is that currently, a lot of code uses ppc_md.progress() when
it should use printk() instead. If progress() is intended for 2-len LED
displays, then it's not really a substitute for printk(). progress() is
supposed to display specialized messages, so I think it makes sense for
it to be treated like a specialized function.
next prev parent reply other threads:[~2007-02-08 2:15 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-05 19:51 [PATCH] Update udbg_progress() to display the integer Timur Tabi
2007-02-06 1:30 ` Olof Johansson
2007-02-06 23:08 ` Timur Tabi
2007-02-06 23:11 ` Paul Mackerras
2007-02-06 23:38 ` Benjamin Herrenschmidt
2007-02-06 23:41 ` Kumar Gala
2007-02-06 23:54 ` Timur Tabi
2007-02-07 0:03 ` Olof Johansson
2007-02-07 0:04 ` Timur Tabi
2007-02-07 21:59 ` Linas Vepstas
2007-02-07 22:26 ` Timur Tabi
2007-02-07 0:00 ` Stephen Rothwell
2007-02-07 0:04 ` Stephen Rothwell
2007-02-06 23:42 ` Timur Tabi
2007-02-07 6:26 ` Mike Strosaker
2007-02-07 16:28 ` Timur Tabi
2007-02-08 0:31 ` Michael Ellerman
2007-02-08 2:07 ` Timur Tabi [this message]
2007-02-07 21:03 ` Benjamin Herrenschmidt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45CA85F3.5030004@freescale.com \
--to=timur@freescale.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=michael@ellerman.id.au \
--cc=olof@lixom.net \
--cc=paulus@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.