All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Julien Grall <julien.grall@citrix.com>, xen-devel@lists.xenproject.org
Cc: Tim Deegan <tim@xen.org>, Keir Fraser <keir@xen.org>,
	ian.campbell@citrix.com, Jan Beulich <jbeulich@suse.com>,
	stefano.stabellini@eu.citrix.com
Subject: Re: [PATCH] xen/mm: Improve message in populate physmap when the domain is direct mapped
Date: Tue, 27 Oct 2015 11:45:18 +0000	[thread overview]
Message-ID: <562F63CE.7090806@citrix.com> (raw)
In-Reply-To: <1445945637-26421-1-git-send-email-julien.grall@citrix.com>

On 27/10/15 11:33, Julien Grall wrote:
> The current domain and the domain pointed by the variable "d" are not
> the same.
>
> However, when it's not possible to get a reference on the page, the
> target domain ID is not printed. This makes the message difficult to
> understand.
>
> Improve the message by printing the target domain ID.
>
> Signed-off-by: Julien Grall <julien.grall@citrix.com>

Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>, with a
suggestion as well.

>
> ---
> Cc: Ian Campbell <ian.campbell@citrix.com>
> Cc: Jan Beulich <jbeulich@suse.com>
> Cc: Keir Fraser <keir@xen.org>
> Cc: Tim Deegan <tim@xen.org>
> ---
>  xen/common/memory.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/xen/common/memory.c b/xen/common/memory.c
> index f6aed0d..206955f 100644
> --- a/xen/common/memory.c
> +++ b/xen/common/memory.c
> @@ -141,7 +141,7 @@ static void populate_physmap(struct memop_args *a)
>                      {
>                          gdprintk(XENLOG_INFO,
>                                   "mfn %#"PRI_xen_pfn" doesn't belong to the"
> -                                 " domain\n", mfn);
> +                                 " domain %d\n", mfn, d->domain_id);

This could easily be shortened to "doesn't belong to d%d" which matches
our other domain identification.

~Andrew

  reply	other threads:[~2015-10-27 11:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-27 11:33 [PATCH] xen/mm: Improve message in populate physmap when the domain is direct mapped Julien Grall
2015-10-27 11:45 ` Andrew Cooper [this message]
2015-10-27 11:49   ` Julien Grall
2015-10-27 12:09     ` Andrew Cooper
2015-10-27 13:09     ` Jan Beulich

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=562F63CE.7090806@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=julien.grall@citrix.com \
    --cc=keir@xen.org \
    --cc=stefano.stabellini@eu.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.