From: Ian Campbell <ian.campbell@citrix.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: xen-devel@lists.xen.org, julien.grall@linaro.org, tim@xen.org,
jintack@cs.columbia.edu, stefano.stabellini@eu.citrix.com
Subject: Re: [PATCH v2] xen: arm64: more useful logging on bad trap.
Date: Thu, 19 Feb 2015 17:20:17 +0000 [thread overview]
Message-ID: <1424366417.30924.145.camel@citrix.com> (raw)
In-Reply-To: <1424341321.30924.46.camel@citrix.com>
On Thu, 2015-02-19 at 10:22 +0000, Ian Campbell wrote:
> > >>> + printk("Bad mode in %s handler detected", handler[reason]);
> > >>> + printk("ESR=0x%08"PRIx32": EC=%"PRIx32", IL=%"PRIx32", ISS=%"PRIx32"\n",
> > >>> + hsr.bits, hsr.ec, hsr.len, hsr.iss);
> > >> This would be better as a single printk() call, otherwise a different
> > >> cpu issuing a printk() could interleave in the middle of the line.
> > >>
> > >> Also, you appear to have dropped the space between "detected" and "ESR"
> > > That's because I forgot to add the \n to the end of the first printk
> > > (the intention was to make the log line <80 columns by splitting it into
> > > two lines). Having fixed that I think your first comment then becomes
> > > irrelevant? Or is there some benefit to printk("foo\nbar\n")?
> >
> > Not completely irrelevant, but certainly far less problematic, and
> > something I wouldn't worry about.
>
> Thanks, I think I'll just add the \n on commit
Which I've now done. thanks all.
prev parent reply other threads:[~2015-02-19 17:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-18 17:01 [PATCH v2] xen: arm64: more useful logging on bad trap Ian Campbell
2015-02-18 17:26 ` Andrew Cooper
2015-02-19 8:45 ` Ian Campbell
2015-02-19 10:17 ` Andrew Cooper
2015-02-19 10:22 ` Ian Campbell
2015-02-19 17:20 ` Ian Campbell [this message]
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=1424366417.30924.145.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=jintack@cs.columbia.edu \
--cc=julien.grall@linaro.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.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.