mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC][SPARC64][kernel 2.4] __show_regs() calls to printk()
@ 2005-03-10 20:19 emmanuel.colbus@ensimag.imag.fr
  2005-03-10 20:45 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: emmanuel.colbus@ensimag.imag.fr @ 2005-03-10 20:19 UTC (permalink / raw)
  To: linux-kernel


Hello,

in the file arch/sparc64/kernel/process.c, the function __show_regs()
prints the content of the registers four by four, but every register's
content needs 16 caracters to be printed; the name of the register needs 4
caracters; and one caracter is needed to separate this value from the next
register's name.

Therefore, it uses 84 caracters per line, but the VT100 has only 80, so we
are using two lines instead of only one, shortening the content of the
(eventual) Oops one could sent.

I think we could perform better, by suppressing the space between the name
of the register and it's value. By this way, instead of writing :

g4: fffff80000000000 g5: 0000000000000004 g6: fffff80001348000 g7: 000000000000
0000

we would have :

g4:fffff80000000000 g5:0000000000000004 g6:fffff80001348000 g7:0000000000000000

It remains fully understandable, I think. Alternately, we could print only
3 registers per line, but since the registers are grouped 8 by 8,
it would be less logical.

This would also have a sense for Sparc32 computers, and, in the same file,
for the functions show_stackframe and show_regwindow.

Any comments? Should I make a patch?


--
Emmanuel Colbus
Club GNU/Linux
ENSIMAG - Departement Telecoms




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RFC][SPARC64][kernel 2.4] __show_regs() calls to printk()
  2005-03-10 20:19 [RFC][SPARC64][kernel 2.4] __show_regs() calls to printk() emmanuel.colbus@ensimag.imag.fr
@ 2005-03-10 20:45 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2005-03-10 20:45 UTC (permalink / raw)
  To: emmanuel.colbus@ensimag.imag.fr; +Cc: linux-kernel

On Thu, 10 Mar 2005 21:19:24 +0100 (MET)
"emmanuel.colbus@ensimag.imag.fr" <colbuse@ensisun.imag.fr> wrote:

> Therefore, it uses 84 caracters per line, but the VT100 has only 80, so we
> are using two lines instead of only one, shortening the content of the
> (eventual) Oops one could sent.

Nobody really cares, and changing the output format is not a good
idea since automated tools parse this output.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-10 20:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-10 20:19 [RFC][SPARC64][kernel 2.4] __show_regs() calls to printk() emmanuel.colbus@ensimag.imag.fr
2005-03-10 20:45 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®