From patchwork Thu Jan 27 03:49:04 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Isaku Yamahata X-Patchwork-Id: 80579 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D31CA1007D1 for ; Thu, 27 Jan 2011 14:50:52 +1100 (EST) Received: from localhost ([127.0.0.1]:54724 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiIsj-0000UV-BD for incoming@patchwork.ozlabs.org; Wed, 26 Jan 2011 22:50:49 -0500 Received: from [140.186.70.92] (port=43242 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiIr8-0008CH-4d for qemu-devel@nongnu.org; Wed, 26 Jan 2011 22:49:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PiIr6-0005N3-RP for qemu-devel@nongnu.org; Wed, 26 Jan 2011 22:49:09 -0500 Received: from mail.valinux.co.jp ([210.128.90.3]:34862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PiIr6-0005LS-IU for qemu-devel@nongnu.org; Wed, 26 Jan 2011 22:49:08 -0500 Received: from ps.local.valinux.co.jp (vagw.valinux.co.jp [210.128.90.14]) by mail.valinux.co.jp (Postfix) with SMTP id 78C7627EE8; Thu, 27 Jan 2011 12:49:04 +0900 (JST) Received: (nullmailer pid 10319 invoked by uid 1000); Thu, 27 Jan 2011 03:49:04 -0000 From: Isaku Yamahata To: qemu-devel@nongnu.org Date: Thu, 27 Jan 2011 12:49:04 +0900 Message-Id: <852fa434bfd6eab6c97c2dcf58bd5773afb0d905.1296100102.git.yamahata@valinux.co.jp> X-Mailer: git-send-email 1.7.1.1 X-Virus-Scanned: clamav-milter 0.95.2 at va-mail.local.valinux.co.jp X-Virus-Status: Clean X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: yamahata@valinux.co.jp, alex.williamson@redhat.com, mst@redhat.com Subject: [Qemu-devel] [PATCH] pci: typo in pcibus_get_dev_path() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 --- 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); }