WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Subject: RE: [Xen-devel] Re: Error reporting capabilities for libxc
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Mon, 23 Oct 2006 22:10:31 +0100
Cc: Anthony Liguori <aliguori@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 23 Oct 2006 14:11:28 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <453D1554.8000202@xxxxxxxxxx> <20061023192753.GG25795@xxxxxxxxxx> <3AAA99889D105740BE010EB6D5A5A3B205073B@xxxxxxxxxxxxxxxxxxxxxxxxxx> <20061023205730.GI25795@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acb25eK+2WZscMqnTwimyUnHLDTHiwAAKEmw
Thread-topic: [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