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

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



> > Do we actually need pointers? I'd much rather go with __thread.
> 
> Well, we need a char buffer to store the error message, since that has
much
> more useful info than the error code alone. I could always just do a
fixed
> 200 byte buffer, and truncate anything longer than this which would
also
> actually remove the annoying OOM problem in copying the error message.

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.

Ian 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

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