spapr: Simplify some warning printing paths in spapr_caps.c
commita816f2d6b801061c3fee44f9162607abcb43123d
authorGreg Kurz <groug@kaod.org>
Thu, 11 Jun 2020 13:40:11 +0000 (11 15:40 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 25 Jun 2020 23:22:29 +0000 (26 09:22 +1000)
treea3f098f339557db618f87f367edd67e141d32f1c
parent63d211993b73ca9ac2bc618afeb61a698e9f5198
spapr: Simplify some warning printing paths in spapr_caps.c

We obviously only want to print a warning in these cases, but this is done
in a rather convoluted manner. Just use warn_report() instead.

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