[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Re: Error reporting capabilities for libxc

Ian Pratt wrote:
Would we be better off returning an error code and a set of parameters,
requiring a call-back into the library to get the string?
It's worth thinking about future language localisation here too.

I know it's a bigger patch, but the Right Thing to do here is to just propagate an error code through the libxc functions.

The whole xc_{get,set}_error() is a cludge. Threading wouldn't be a problem if we returned proper error codes.

Looking at your patch, it doesn't seem like it would really be that hard...


Anthony Liguori


Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.