The open source OpenXR runtime
0
fork

Configure Feed

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

u/pacing: Add log level setting for "fake" pacer

As suggested by Jakob Bornecrantz in mr!2526

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2526>

authored by

xantoz and committed by
Marge Bot
91f52c32 1de41762

+10 -2
+10 -2
src/xrt/auxiliary/util/u_pacing_compositor_fake.c
··· 23 23 #include <assert.h> 24 24 #include <math.h> 25 25 26 + DEBUG_GET_ONCE_LOG_OPTION(log_level_fake, "U_PACING_COMPOSITOR_FAKE_LOG", U_LOGGING_INFO) 27 + 28 + #define UPC_LOG_T(...) U_LOG_IFL_T(debug_get_log_option_log_level_fake(), __VA_ARGS__) 29 + #define UPC_LOG_D(...) U_LOG_IFL_D(debug_get_log_option_log_level_fake(), __VA_ARGS__) 30 + #define UPC_LOG_I(...) U_LOG_IFL_I(debug_get_log_option_log_level_fake(), __VA_ARGS__) 31 + #define UPC_LOG_W(...) U_LOG_IFL_W(debug_get_log_option_log_level_fake(), __VA_ARGS__) 32 + #define UPC_LOG_E(...) U_LOG_IFL_E(debug_get_log_option_log_level_fake(), __VA_ARGS__) 33 + 26 34 27 35 /* 28 36 * ··· 216 224 u_pp(dg, "\n"); 217 225 u_ls_ns_print_and_reset(&ft->total_frame, dg); 218 226 219 - U_LOG_IFL_I(U_LOGGING_INFO, "%s", sink.buffer); 227 + UPC_LOG_I("%s", sink.buffer); 220 228 } 221 229 222 230 static void ··· 498 506 // Return value. 499 507 *out_upc = &ft->base; 500 508 501 - U_LOG_I("Created fake timing"); 509 + UPC_LOG_I("Created fake timing"); 502 510 503 511 return XRT_SUCCESS; 504 512 }