Re: [Qemu-devel] [PATCH v5 1/5] Xen: use qemu_strtoul instead of strtol

2016-01-14 Thread Eric Blake
On 01/13/2016 05:51 AM, Cao jin wrote: > No need to roll our own (with slightly incorrect handling of errno), > when we can use the common version. > > Change signed parsing to unsigned, because what it read are values in > PCI config space, which are non-negative. > > Signed-off-by: Cao jin

[Qemu-devel] [PATCH v5 1/5] Xen: use qemu_strtoul instead of strtol

2016-01-13 Thread Cao jin
No need to roll our own (with slightly incorrect handling of errno), when we can use the common version. Change signed parsing to unsigned, because what it read are values in PCI config space, which are non-negative. Signed-off-by: Cao jin ---