From 589a4ad3e9bbabf72666ae041fa638a17eb1697e Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Tue, 26 May 2020 17:54:13 +0100 Subject: [PATCH] st/oxr: Better printing of envBlendMode errors --- src/xrt/state_trackers/oxr/oxr_session.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/xrt/state_trackers/oxr/oxr_session.c b/src/xrt/state_trackers/oxr/oxr_session.c index dabca7a2b..77999cf9f 100644 --- a/src/xrt/state_trackers/oxr/oxr_session.c +++ b/src/xrt/state_trackers/oxr/oxr_session.c @@ -663,15 +663,18 @@ oxr_session_frame_end(struct oxr_logger *log, if (blend_mode == 0) { return oxr_error(log, XR_ERROR_VALIDATION_FAILURE, - "(frameEndInfo->environmentBlendMode) " - "unknown environment blend mode"); + "(frameEndInfo->environmentBlendMode == " + "0x%08x) unknown environment blend mode", + frameEndInfo->environmentBlendMode); } if ((blend_mode & sess->sys->head->hmd->blend_mode) == 0) { + //! @todo Make integer print to string. return oxr_error(log, XR_ERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED, - "(frameEndInfo->environmentBlendMode) " - "is not supported"); + "(frameEndInfo->environmentBlendMode == %u) " + "is not supported", + frameEndInfo->environmentBlendMode); } /*