From 03df012e901c309351d090c266a30b1f55b38d5b Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Sat, 9 Apr 2022 17:38:12 +0100 Subject: [PATCH] st/oxr: Add XRT_PRINTF_FORMAT to oxr_slog --- src/xrt/state_trackers/oxr/oxr_input_transform.c | 10 +++++----- src/xrt/state_trackers/oxr/oxr_logger.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/xrt/state_trackers/oxr/oxr_input_transform.c b/src/xrt/state_trackers/oxr/oxr_input_transform.c index eafdcdafe..c03c0ea31 100644 --- a/src/xrt/state_trackers/oxr/oxr_input_transform.c +++ b/src/xrt/state_trackers/oxr/oxr_input_transform.c @@ -1,4 +1,4 @@ -// Copyright 2018-2020, Collabora, Ltd. +// Copyright 2018-2022, Collabora, Ltd. // SPDX-License-Identifier: BSL-1.0 /*! * @file @@ -319,10 +319,10 @@ oxr_input_transform_create_chain(struct oxr_logger *log, while (!oxr_type_matches_xrt(current_xform->result_type, result_type)) { if (transform_count >= OXR_MAX_INPUT_TRANSFORMS) { // Couldn't finish the transform to the desired type. - oxr_slog(slog, - "\t\t\tSeem to have gotten into a loop, " - "trying to make a rule to transform.\n", - action_name, bound_path_string); + oxr_slog( + slog, + "\t\t\tSeem to have gotten into a loop, trying to make a rule to transform. '%s' '%s' \n", + action_name, bound_path_string); *out_transform_count = 0; *out_transforms = NULL; return false; diff --git a/src/xrt/state_trackers/oxr/oxr_logger.h b/src/xrt/state_trackers/oxr/oxr_logger.h index 969b64733..aebdb4deb 100644 --- a/src/xrt/state_trackers/oxr/oxr_logger.h +++ b/src/xrt/state_trackers/oxr/oxr_logger.h @@ -1,4 +1,4 @@ -// Copyright 2018-2019, Collabora, Ltd. +// Copyright 2018-2022, Collabora, Ltd. // SPDX-License-Identifier: BSL-1.0 /*! * @file @@ -92,7 +92,7 @@ struct oxr_sink_logger * Log string to sink logger. */ void -oxr_slog(struct oxr_sink_logger *slog, const char *fmt, ...); +oxr_slog(struct oxr_sink_logger *slog, const char *fmt, ...) XRT_PRINTF_FORMAT(2, 3); /*! * Abort logging, frees all internal data.