mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-04 06:06:17 +00:00
st/prober: Quit without crashing if no driver is available
This commit is contained in:
parent
e221f836a8
commit
b500272c0b
|
@ -1068,11 +1068,14 @@ p_create_system(struct xrt_prober *xp, struct xrt_system_devices **out_xsysd, st
|
||||||
if (xret == XRT_SUCCESS) {
|
if (xret == XRT_SUCCESS) {
|
||||||
print_system_devices(dg, *out_xsysd);
|
print_system_devices(dg, *out_xsysd);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
u_pp(dg, "\n\tResult: ");
|
u_pp(dg, "\n\tNo builder can be used to create a head device");
|
||||||
u_pp_xrt_result(dg, xret);
|
xret = XRT_ERROR_DEVICE_CREATION_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
u_pp(dg, "\n\tResult: ");
|
||||||
|
u_pp_xrt_result(dg, xret);
|
||||||
|
|
||||||
P_INFO(p, "%s", sink.buffer);
|
P_INFO(p, "%s", sink.buffer);
|
||||||
|
|
||||||
return xret;
|
return xret;
|
||||||
|
|
Loading…
Reference in a new issue