From d8cd9ffcdd89b56988a85fc9650ddc611c34a672 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Fri, 4 Oct 2019 10:27:49 +0100 Subject: [PATCH] st/prober: Better error printing --- src/xrt/state_trackers/prober/p_prober.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xrt/state_trackers/prober/p_prober.c b/src/xrt/state_trackers/prober/p_prober.c index fba8a61ec..ea41b6073 100644 --- a/src/xrt/state_trackers/prober/p_prober.c +++ b/src/xrt/state_trackers/prober/p_prober.c @@ -597,7 +597,8 @@ open_hid_interface(struct xrt_prober *xp, ret = os_hid_open_hidraw(hidraw->path, out_hid_dev); if (ret != 0) { - P_ERROR(p, "Failed to open device!"); + P_ERROR(p, "Failed to open device '%s' got '%i'", + hidraw->path, ret); return ret; }