From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlfEJ-0001ig-Qg for qemu-devel@nongnu.org; Mon, 12 Oct 2015 11:41:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZlfEH-0005Gs-20 for qemu-devel@nongnu.org; Mon, 12 Oct 2015 11:41:39 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:56633) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlfEG-0005Gm-SG for qemu-devel@nongnu.org; Mon, 12 Oct 2015 11:41:36 -0400 Date: Mon, 12 Oct 2015 17:41:35 +0200 From: Samuel Thibault Message-ID: <20151012154135.GF4886@var.bordeaux.inria.fr> References: <1444637004-20195-1-git-send-email-pbonzini@redhat.com> <1444637004-20195-15-git-send-email-pbonzini@redhat.com> <561BD204.7050307@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <561BD204.7050307@redhat.com> Subject: Re: [Qemu-devel] [PATCH 14/21] qemu-char: convert braille backend to data-driven creation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: Paolo Bonzini , qemu-devel@nongnu.org, armbru@redhat.com Eric Blake, le Mon 12 Oct 2015 09:30:12 -0600, a écrit : > Also, I assume that brlapi_perror() adds additional information to > the error message it prints, such as conversion of a brlapi-specific > error message in the same manner in which perror() converts errno and in > which error_setg_errno() would be used. Yes. Such additional information is really useful to debug brlapi issues. > So I don't know if this > conversion is the best. But I'm unfamiliar with brlapi_* in general, to > know if there is anything better to use, brlapi_error_t * brlapi_error_location(void); const char * brlapi_strerror(const brlapi_error_t *error); So brlapi_strerror(brlapi_error_location()) will return what you want, i.e. the string that brlapi_error() would have printed. > so I'd rather get a second opinion on this. Cc-ing me would have been useful, "braille" just happened to catch my eye by luck while looking over qemu mails :) Samuel