mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +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) {
|
||||
print_system_devices(dg, *out_xsysd);
|
||||
}
|
||||
|
||||
u_pp(dg, "\n\tResult: ");
|
||||
u_pp_xrt_result(dg, xret);
|
||||
} else {
|
||||
u_pp(dg, "\n\tNo builder can be used to create a head device");
|
||||
xret = XRT_ERROR_DEVICE_CREATION_FAILED;
|
||||
}
|
||||
|
||||
u_pp(dg, "\n\tResult: ");
|
||||
u_pp_xrt_result(dg, xret);
|
||||
|
||||
P_INFO(p, "%s", sink.buffer);
|
||||
|
||||
return xret;
|
||||
|
|
Loading…
Reference in a new issue