8eddc30 virsh-domain: use correct base for virStrToLong_ui

Authored and Committed by phrdina 8 years ago
    virsh-domain: use correct base for virStrToLong_ui
    
    While parsing device addresses we should use correct base and don't
    count on auto-detect.  For example, PCI address uses hex numbers, but
    each number starting with 0 will be auto-detected as octal number and
    that's wrong.  Another wrong use-case is for PCI address if for example
    bus is 10, than it's incorrectly parsed as decimal number.
    
    PCI and CCW addresses have all values as hex numbers, IDE and SCSI
    addresses are in decimal numbers.
    
    Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
    
        
file modified
+15 -15