]> git.proxmox.com Git - mirror_qemu.git/commit
spapr: Use error_append_hint() in spapr_caps.c
authorGreg Kurz <groug@kaod.org>
Tue, 28 Jul 2020 13:29:34 +0000 (15:29 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 12 Aug 2020 03:16:27 +0000 (13:16 +1000)
commitd9c5b5fa86ce37125dcc64c6274a1bc48cf11903
tree61c625de1cc783f2a7ffea269356ed6ab4b14463
parent7abf97975088595682f52c7cfb030b45ea38d8c3
spapr: Use error_append_hint() in spapr_caps.c

We have a dedicated error API for hints. Use it instead of embedding
the hint in the error message, as recommanded in the "qapi/error.h"
header file.

While here, have cap_fwnmi_apply(), which already uses
error_append_hint(), to call ERRP_GUARD() as well.

Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Message-Id: <159594297421.8262.14314530897345809924.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_caps.c