Linux PARISC architecture development
 help / color / mirror / Atom feed
From: Helge Deller <deller@gmx.de>
To: Thibaut VARENE <T-Bone@parisc-linux.org>
Cc: John David Anglin <dave@hiauly1.hia.nrc.ca>,
	gmsoft@tuxicoman.be, carlos@systemhalted.org,
	grundler@parisc-linux.org, linux-parisc@vger.kernel.org
Subject: Re: 2.6.28-rcX in pretty bad shape on parisc
Date: Wed, 03 Dec 2008 21:41:00 +0100	[thread overview]
Message-ID: <4936EEDC.1000908@gmx.de> (raw)
In-Reply-To: <7d01f9f00812010254s3bf845cr8e2b35fe2dedc125@mail.gmail.com>

Thibaut VARENE wrote:
> On Tue, Dec 2, 2008 at 1:00 AM, John David Anglin
> <dave@hiauly1.hia.nrc.ca> wrote:
> 
>> Are there some standard 32 and 64 bit defines for format strings?  Or, do we
>> always want 16 hex digits?
> 
> In traps.c we used to do this for the regs dump:
> 
> #ifdef __LP64__
> #define RFMT "%016lx"
> #else
> #define RFMT "%08lx"
> #endif
> 
> and then sprintf(p, " " RFMT, (i+j) == 0 ? 0 : regs->gr[i + j]);
> 
> I guess a similar trick could do, to some extent?

An alternative possibility would be to use pointers, e.g.
printk("addr 0x%p\n", (void *)x);
That way it would 32 or 64bit addresses, depending if we have a 32 or 
64bit kernel.

Helge

  reply	other threads:[~2008-12-03 20:41 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-18 20:04 2.6.28-rcX in pretty bad shape on parisc Helge Deller
2008-11-19  1:33 ` Thibaut VARENE
2008-11-19 15:47   ` Helge Deller
2008-11-19  2:31 ` James Bottomley
2008-11-19  9:13   ` Domenico Andreoli
2008-11-19 14:20     ` James Bottomley
2008-11-19 15:12       ` John David Anglin
2008-11-19 16:25     ` Helge Deller
2008-11-19 18:13       ` Helge Deller
2008-11-20  7:55       ` Helge Deller
2008-11-20 12:57         ` Thibaut VARENE
2008-11-20 15:14         ` John David Anglin
2008-11-20  3:51   ` John David Anglin
2008-11-20 16:57     ` John David Anglin
2008-11-22  5:57       ` Grant Grundler
2008-11-22  6:14         ` Grant Grundler
2008-11-22 19:48           ` John David Anglin
2008-11-22 21:37             ` John David Anglin
2008-11-22 23:01               ` James Bottomley
2008-11-23 16:54                 ` John David Anglin
2008-11-22  6:11   ` Grant Grundler
2008-11-23  7:13 ` Grant Grundler
2008-11-23 16:36   ` John David Anglin
2008-11-23 16:57     ` John David Anglin
2008-11-25  2:54       ` John David Anglin
2008-11-25 13:33         ` Carlos O'Donell
2008-11-25 13:58           ` Guy Martin
2008-11-25 14:07             ` Carlos O'Donell
2008-11-26 17:51               ` Guy Martin
2008-11-30 20:24                 ` John David Anglin
2008-11-30 21:03                   ` Helge Deller
2008-12-02  0:00                     ` John David Anglin
2008-12-01 10:54                       ` Thibaut VARENE
2008-12-03 20:41                         ` Helge Deller [this message]
2008-12-08  5:15                         ` Kyle McMartin
2008-12-08 15:23                           ` John David Anglin
2008-12-08 15:34                             ` Kyle McMartin
2008-12-08 15:57                               ` John David Anglin
2008-12-08 16:00                                 ` Kyle McMartin
2008-12-08 16:00                                   ` Kyle McMartin
2008-12-09  3:44                                     ` resource_size_t printk woes Kyle McMartin
2008-12-10  4:05                                       ` John David Anglin
2009-01-01 13:06                                         ` Helge Deller
2009-01-01 17:14                                           ` John David Anglin
2009-01-01 17:32                                             ` Helge Deller
2009-01-01 19:04                                               ` John David Anglin
2009-01-01 22:37                                                 ` John David Anglin
2009-01-01 23:39                                                   ` John David Anglin
2009-01-02  9:14                                                     ` Helge Deller
2009-01-02 16:32                                                       ` John David Anglin
2009-01-02 16:43                                                       ` John David Anglin
2009-01-02 19:50                                                         ` Grant Grundler
2008-12-08  4:50           ` 2.6.28-rcX in pretty bad shape on parisc John David Anglin
2008-12-08  7:50             ` Grant Grundler
2008-12-08 15:16               ` John David Anglin
2008-12-09  4:14               ` Kyle McMartin
2008-12-08 12:39             ` Carlos O'Donell
2008-12-08 14:54               ` John David Anglin
2008-12-08 15:02                 ` Carlos O'Donell
2008-12-08 15:30                   ` John David Anglin
2008-12-08 22:14                   ` Carlos O'Donell
2008-12-08 22:39                     ` John David Anglin
2008-12-09  0:01                       ` Carlos O'Donell

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=4936EEDC.1000908@gmx.de \
    --to=deller@gmx.de \
    --cc=T-Bone@parisc-linux.org \
    --cc=carlos@systemhalted.org \
    --cc=dave@hiauly1.hia.nrc.ca \
    --cc=gmsoft@tuxicoman.be \
    --cc=grundler@parisc-linux.org \
    --cc=linux-parisc@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox