|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH V12 5/9] Revert "pci: don't export an internal function"
On 14/06/12 16:30, Michael S. Tsirkin wrote:
I love this trick, even if it use a bit of space in the binary, I think. I will use it. And comparing with the above, your buffer looks too short, doesn't it? Yes, I think I forgot to count the ':'s and '.'. > + char *p = buffer; > + > + snprintf(buffer, sizeof(buffer), "%04x:%02x:%02x.%d", > + addr->domain, addr->bus, addr->slot, addr->function);A good idea might be to check the return code. assert(ret<= sizeof buf). I will. Thanks, -- Anthony PERARD _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |