From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: xen-devel@lists.xenproject.org,
Julien Grall <julien.grall@linaro.org>,
stefano.stabellini@citrix.com, tim@xen.org
Subject: Re: [PATCH] xen/arm: traps: Add missing 0x in bad_trap
Date: Thu, 10 Apr 2014 13:15:22 +0100 [thread overview]
Message-ID: <53468B5A.6040306@citrix.com> (raw)
In-Reply-To: <1397131290.9862.153.camel@kazak.uk.xensource.com>
On 10/04/14 13:01, Ian Campbell wrote:
> On Thu, 2014-04-10 at 12:53 +0100, Andrew Cooper wrote:
>> On 10/04/14 12:44, Julien Grall wrote:
>>> The syndrome value is printed in hexadecimal. Prefix it by 0x for less
>>> confusion.
>>>
>>> Signed-off-by: Julien Grall <julien.grall@linaro.org>
>> Xen is trying to converge on '%#' rather than an explicit 0x.
> Really? I've been moving in the opposite direction because e.g. %010#lx
> does the wrong thing with zero (0000000000 instead of 0x00000000).
>
> Not sure about plain %#x though...
%#x DoesTheRightThing, and is a character shorter than its alternative.
Jan appears to have replaced most of the x86 examples.
I also get slightly frustrated with Format strings with an explicit
width do the specified thing (limit the length of the entire formatted
entry), rather than the useful thing (sticking '0x' before a number with
an explicit width).
By the time you have got a zero-extended explicitly-width'd format
string, the 0x is hardly the end of the world
>
>> Also, it looks as if you want to do the same for IL
> IL must be 2 or 4, for clarity it would be better as %d rather than 0x%x
> I think.
Agreed
~Andrew
next prev parent reply other threads:[~2014-04-10 12:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-10 11:44 [PATCH] xen/arm: traps: Add missing 0x in bad_trap Julien Grall
2014-04-10 11:53 ` Andrew Cooper
2014-04-10 11:56 ` Julien Grall
2014-04-10 12:01 ` Ian Campbell
2014-04-10 12:15 ` Andrew Cooper [this message]
2014-05-02 12:56 ` Ian Campbell
2014-05-02 13:19 ` Julien Grall
2014-05-02 13:21 ` Ian Campbell
2014-05-02 13:25 ` Julien Grall
2014-05-02 14:08 ` Jan Beulich
2014-05-02 15:14 ` Ian Campbell
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=53468B5A.6040306@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=julien.grall@linaro.org \
--cc=stefano.stabellini@citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xenproject.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.