Skip to content

Commit 6121c55

Browse files
author
Markus Armbruster
committed
hw/xen: Downgrade a xen_bus_realize() non-error to warning
xen_bus_realize() reports a failure to set up a watch as error, but it doesn't treat it as one: it simply continues. Report a warning instead. Signed-off-by: Markus Armbruster <[email protected]> Message-ID: <[email protected]> Reviewed-by: Stefano Stabellini <[email protected]>
1 parent de7b180 commit 6121c55

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

hw/xen/xen-bus.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -353,10 +353,9 @@ static void xen_bus_realize(BusState *bus, Error **errp)
353353
xs_node_watch(xenbus->xsh, node, key, xen_bus_backend_changed,
354354
xenbus, &local_err);
355355
if (local_err) {
356-
/* This need not be treated as a hard error so don't propagate */
357-
error_reportf_err(local_err,
358-
"failed to set up '%s' enumeration watch: ",
359-
type[i]);
356+
warn_reportf_err(local_err,
357+
"failed to set up '%s' enumeration watch: ",
358+
type[i]);
360359
local_err = NULL;
361360
}
362361

0 commit comments

Comments
 (0)