The open source OpenXR runtime
0
fork

Configure Feed

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

c/client: Port printfs to static u_logging.

authored by

Lubosz Sarnecki and committed by
Jakob Bornecrantz
4acab28f 34563276

+7 -8
+1 -1
src/xrt/compositor/client/comp_egl_glue.c
··· 194 194 195 195 if (!client_gl_compositor_init(c, xcn, sc_create)) { 196 196 free(c); 197 - fprintf(stderr, "Failed to initialize compositor\n"); 197 + U_LOG_E("Failed to initialize compositor"); 198 198 old_restore(&old); 199 199 return NULL; 200 200 }
+3 -3
src/xrt/compositor/client/comp_gl_client.c
··· 342 342 case 129 /*VK_FORMAT_D24_UNORM_S8_UINT*/: return GL_DEPTH24_STENCIL8; 343 343 case 130 /*VK_FORMAT_D32_SFLOAT_S8_UINT*/: return GL_DEPTH32F_STENCIL8; 344 344 default: 345 - printf("Cannot convert VK format 0x%016" PRIx64 346 - " to GL format!\n", 347 - format); 345 + U_LOG_W("Cannot convert VK format 0x%016" PRIx64 346 + " to GL format!\n", 347 + format); 348 348 return 0; 349 349 } 350 350 }
+3 -4
src/xrt/compositor/client/comp_gl_xlib_client.c
··· 11 11 #include <stdlib.h> 12 12 13 13 #include "util/u_misc.h" 14 + #include "util/u_logging.h" 14 15 15 16 #include "xrt/xrt_gfx_xlib.h" 16 17 ··· 57 58 { 58 59 gladLoadGL(glXGetProcAddress); 59 60 60 - // @todo log this to a proper logger. 61 61 #define CHECK_REQUIRED_EXTENSION(EXT) \ 62 62 do { \ 63 63 if (!GLAD_##EXT) { \ 64 - fprintf(stderr, \ 65 - "%s - Required OpenGL extension " #EXT \ 66 - " not available\n", \ 64 + U_LOG_E("%s - Required OpenGL extension " #EXT \ 65 + " not available", \ 67 66 __func__); \ 68 67 return NULL; \ 69 68 } \