The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

st/prober: Warn when we can't get USB descriptors

+7
+7
src/xrt/state_trackers/prober/p_prober.c
··· 1104 1104 XRT_MAYBE_UNUSED struct prober *p = (struct prober *)xp; 1105 1105 struct prober_device *pdev = (struct prober_device *)xpdev; 1106 1106 int ret = 0; 1107 + 1107 1108 #ifdef XRT_HAVE_LIBUSB 1108 1109 if (pdev->base.bus == XRT_BUS_TYPE_USB && pdev->usb.dev != NULL) { 1109 1110 ret = p_libusb_get_string_descriptor(p, pdev, which_string, buffer, max_length); ··· 1111 1112 return ret; 1112 1113 } 1113 1114 } 1115 + #else 1116 + if (pdev->base.bus == XRT_BUS_TYPE_USB) { 1117 + P_WARN(p, "Can not get usb descriptors (libusb-dev not installed)!"); 1118 + return ret; 1119 + } 1114 1120 #endif 1121 + 1115 1122 if (pdev && pdev->base.bus == XRT_BUS_TYPE_BLUETOOTH) { 1116 1123 switch (which_string) { 1117 1124 case XRT_PROBER_STRING_SERIAL_NUMBER: {