[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [qemu-xen-unstable] pass-through: porvide leading zero for vdevfn
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) power_on_php_slot(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 Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |