|
@@ -550,7 +550,8 @@ static void xen_console_device_create(XenBackendInstance *backend,
|
|
goto fail;
|
|
goto fail;
|
|
}
|
|
}
|
|
|
|
|
|
- if (xs_node_scanf(xsh, XBT_NULL, fe, "type", errp, "%ms", &type) != 1) {
|
|
|
|
|
|
+ type = xs_node_read(xsh, XBT_NULL, NULL, errp, "%s/%s", fe, "type");
|
|
|
|
+ if (!type) {
|
|
error_prepend(errp, "failed to read console device type: ");
|
|
error_prepend(errp, "failed to read console device type: ");
|
|
goto fail;
|
|
goto fail;
|
|
}
|
|
}
|
|
@@ -568,7 +569,8 @@ static void xen_console_device_create(XenBackendInstance *backend,
|
|
|
|
|
|
snprintf(label, sizeof(label), "xencons%ld", number);
|
|
snprintf(label, sizeof(label), "xencons%ld", number);
|
|
|
|
|
|
- if (xs_node_scanf(xsh, XBT_NULL, fe, "output", NULL, "%ms", &output) == 1) {
|
|
|
|
|
|
+ output = xs_node_read(xsh, XBT_NULL, NULL, NULL, "%s/%s", fe, "output");
|
|
|
|
+ if (output) {
|
|
/*
|
|
/*
|
|
* FIXME: sure we want to support implicit
|
|
* FIXME: sure we want to support implicit
|
|
* muxed monitors here?
|
|
* muxed monitors here?
|