This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] [qemu-xen-unstable] pass-through: porvide leading zero f

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [qemu-xen-unstable] pass-through: porvide leading zero for vdevfn
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: Tue, 26 May 2009 05:50:29 -0700
Delivery-date: Thu, 11 Jun 2009 08:01:26 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
commit 414a6144ec9a964fb4d2c201e9378cad59a46212
Author: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Date:   Thu May 21 17:57:38 2009 +0100

    pass-through: porvide leading zero for vdevfn
    This is consistent with the format used elsewhere.
    At this time this inconsistency manifests in the output of pci-list
    for functions that have been hot-plugged.
    While the pci-list output could be unified inside xm or xend by,
    for example parsing the string as an integer and then formating it
    as a string, there seems to be no disadvantage in making the
    string representation used consistent.
    Cc: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
    Cc: Dexuan Cui <dexuan.cui@xxxxxxxxx>
    Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>
 hw/piix4acpi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/piix4acpi.c b/hw/piix4acpi.c
index 7844cb8..d5c5c35 100644
--- a/hw/piix4acpi.c
+++ b/hw/piix4acpi.c
@@ -508,7 +508,7 @@ void acpi_php_add(int slot)
     /* tell Control panel which slot for the new pass-throgh dev */
-    sprintf(ret_str, "0x%x", slot);
+    sprintf(ret_str, "0x%02x", slot);
     xenstore_record_dm("parameter", ret_str);
     /* signal the CP ACPI hot insert done */
generated by git-patchbot for /home/xen/git/qemu-xen-unstable.git

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [qemu-xen-unstable] pass-through: porvide leading zero for vdevfn, Ian Jackson <=