From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Xen-devel <xen-devel@lists.xenproject.org>,
Jan Beulich <JBeulich@suse.com>
Subject: Re: [PATCH] VT-d: Adjust diagnostics in set_msi_source_id()
Date: Fri, 14 Mar 2025 11:15:47 +0100 [thread overview]
Message-ID: <Z9QB0ymmaygrFFUc@macbook.local> (raw)
In-Reply-To: <20250314095523.4096604-1-andrew.cooper3@citrix.com>
On Fri, Mar 14, 2025 at 09:55:23AM +0000, Andrew Cooper wrote:
> Use %pd, and state what the unknown is. As it's an enum, it's a signed type.
>
> Also drop one piece of trailing whitespace.
>
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
> ---
> CC: Jan Beulich <JBeulich@suse.com>
> CC: Roger Pau Monné <roger.pau@citrix.com>
> ---
> xen/drivers/passthrough/vtd/intremap.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/xen/drivers/passthrough/vtd/intremap.c b/xen/drivers/passthrough/vtd/intremap.c
> index 81394ef45299..9272a2511398 100644
> --- a/xen/drivers/passthrough/vtd/intremap.c
> +++ b/xen/drivers/passthrough/vtd/intremap.c
> @@ -485,15 +485,15 @@ static int set_msi_source_id(const struct pci_dev *pdev,
> else
> {
> dprintk(XENLOG_WARNING VTDPREFIX,
> - "d%d: no upstream bridge for %pp\n",
> - pdev->domain->domain_id, &pdev->sbdf);
> + "%pd: no upstream bridge for %pp\n",
> + pdev->domain, &pdev->sbdf);
> return -ENXIO;
> }
> break;
>
> default:
> - dprintk(XENLOG_WARNING VTDPREFIX, "d%d: unknown(%u): %pp\n",
> - pdev->domain->domain_id, pdev->type, &pdev->sbdf);
> + dprintk(XENLOG_WARNING VTDPREFIX, "%pd: %pp unknown device type %d\n",
> + pdev->domain, &pdev->sbdf, pdev->type);
Would be nice to have a pdev_type_to_str() or similar helper.
Thanks, Roger.
next prev parent reply other threads:[~2025-03-14 10:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-14 9:55 [PATCH] VT-d: Adjust diagnostics in set_msi_source_id() Andrew Cooper
2025-03-14 10:15 ` Roger Pau Monné [this message]
2025-03-14 11:51 ` Andrew Cooper
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=Z9QB0ymmaygrFFUc@macbook.local \
--to=roger.pau@citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--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.