domain: Fix PCI address decimal parsing regression
authorCole Robinson <crobinso@redhat.com>
Fri, 30 Apr 2010 16:14:35 +0000 (18:14 +0200)
committerDaniel Veillard <veillard@redhat.com>
Fri, 30 Apr 2010 16:14:35 +0000 (18:14 +0200)
commite984019688509605966c03cd77f4591d2cc222d3
treec4b07db23344f4157153077166707eaf458485b4
parent34dcbbb470fb8b93232b8bd709e949f9012a7462
domain: Fix PCI address decimal parsing regression

<hostdev> address parsing previously attempted to detect the number
base: currently it is hardcoded to base 16, which can break PCI
assignment via virt-manager. Revert to the previous behavior.

* src/conf/domain_conf.c: virDomainDevicePCIAddressParseXML, switch to
  virStrToLong_ui(bus, NULL, 0, ...) to autodetect base
src/conf/domain_conf.c