|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 2/5] hw/nvram/xlnx-bbram: More idiomatic and simpler error reporting
On Wed, Nov 19, 2025 at 02:08:52PM +0100, Markus Armbruster wrote: > Date: Wed, 19 Nov 2025 14:08:52 +0100 > From: Markus Armbruster <armbru@xxxxxxxxxx> > Subject: [PATCH 2/5] hw/nvram/xlnx-bbram: More idiomatic and simpler error > reporting > > bbram_bdrv_error() interpolates a "detail" string into a template with > error_setg_errno(), then reports the result with error_report(). > Produces error messages with an unwanted '.': > > BLK-NAME: BBRAM backstore DETAIL failed.: STERROR > > Replace both calls of bbram_bdrv_error() by straightforward > error_report(), and drop the function. This is less code, easier to > read, and the error message is more greppable. > > Also delete the unwanted '.'. > > Signed-off-by: Markus Armbruster <armbru@xxxxxxxxxx> > --- > hw/nvram/xlnx-bbram.c | 18 ++++-------------- > 1 file changed, 4 insertions(+), 14 deletions(-) Reviewed-by: Zhao Liu <zhao1.liu@xxxxxxxxx>
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |