qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Isaku Yamahata <yamahata@valinux.co.jp>
Cc: alex.williamson@redhat.com, qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH] pci: typo in pcibus_get_dev_path()
Date: Thu, 27 Jan 2011 06:54:12 +0200	[thread overview]
Message-ID: <20110127045412.GA24451@redhat.com> (raw)
In-Reply-To: <852fa434bfd6eab6c97c2dcf58bd5773afb0d905.1296100102.git.yamahata@valinux.co.jp>

On Thu, Jan 27, 2011 at 12:49:04PM +0900, Isaku Yamahata wrote:
> This patch fixes typo in pcibus_get_dev_path().
> Without this patch, the result of pcibus_get_dev_path() isn't unique.
> 
> Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>

Good catch, applied, thanks.

> ---
>  hw/pci.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/hw/pci.c b/hw/pci.c
> index d2a0cee..b3d8ba5 100644
> --- a/hw/pci.c
> +++ b/hw/pci.c
> @@ -2191,7 +2191,7 @@ static char *pcibus_get_dev_path(DeviceState *dev)
>      for (t = d; t; t = t->bus->parent_dev) {
>          p -= slot_len;
>          s = snprintf(slot, sizeof slot, ":%02x.%x",
> -                     PCI_SLOT(t->devfn), PCI_FUNC(d->devfn));
> +                     PCI_SLOT(t->devfn), PCI_FUNC(t->devfn));
>          assert(s == slot_len);
>          memcpy(p, slot, slot_len);
>      }
> -- 
> 1.7.1.1

      reply	other threads:[~2011-01-27  4:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-27  3:49 [Qemu-devel] [PATCH] pci: typo in pcibus_get_dev_path() Isaku Yamahata
2011-01-27  4:54 ` Michael S. Tsirkin [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=20110127045412.GA24451@redhat.com \
    --to=mst@redhat.com \
    --cc=alex.williamson@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=yamahata@valinux.co.jp \
    /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;
as well as URLs for NNTP newsgroup(s).