diff --git a/server/driver/wivrn_session.cpp b/server/driver/wivrn_session.cpp index 4951dcf1..bee64e3d 100644 --- a/server/driver/wivrn_session.cpp +++ b/server/driver/wivrn_session.cpp @@ -66,14 +66,6 @@ #include "solarxr_interface.h" #endif -static std::string xrt_result_to_string(xrt_result_t xret) -{ - struct u_pp_sink_stack_only sink; - u_pp_delegate_t dg = u_pp_sink_stack_only_init(&sink); - u_pp_xrt_result(dg, xret); - return sink.buffer; -} - namespace wivrn { @@ -331,7 +323,7 @@ xrt_result_t wivrn::wivrn_session::create_session(std::unique_ptrhmd, &ctf, &self->app_pacers, out_xsysc); if (xret != XRT_SUCCESS) { - U_LOG_E("Failed to create system compositor: %s", xrt_result_to_string(xret).c_str()); + U_LOG_E("Failed to create system compositor: %s", u_str_xrt_result(xret)); return xret; } self->system_compositor = *out_xsysc; @@ -361,7 +353,7 @@ xrt_result_t wivrn::wivrn_session::create_session(std::unique_ptrstatic_roles.eyes = nullptr; self->eye_tracker.reset(); } @@ -946,7 +938,7 @@ void wivrn_session::operator()(const from_headset::stop_application & req) xrt_result_t xret = xrt_session_request_exit(t.ics.xs); if (xret != XRT_SUCCESS) { - U_LOG_W("Failed to request exit for application %s: %s", t.ics.client_state.info.application_name, xrt_result_to_string(xret).c_str()); + U_LOG_W("Failed to request exit for application %s: %s", t.ics.client_state.info.application_name, u_str_xrt_result(xret)); } auto when = os_monotonic_get_ns() + 10l * U_TIME_1S_IN_NS;