The open source OpenXR runtime
0
fork

Configure Feed

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

u/logging: Tidy c file [NFC]

authored by

Jakob Bornecrantz and committed by
Ryan Pavlik
7ef4a21d 200f1b11

+27
+27
src/xrt/auxiliary/util/u_logging.c
··· 17 17 #include <stdio.h> 18 18 #include <stdarg.h> 19 19 20 + 21 + /* 22 + * 23 + * Global log level functions. 24 + * 25 + */ 26 + 20 27 DEBUG_GET_ONCE_LOG_OPTION(global_log, "XRT_LOG", U_LOGGING_WARN) 21 28 22 29 enum u_logging_level ··· 25 32 return debug_get_log_option_global_log(); 26 33 } 27 34 35 + 36 + /* 37 + * 38 + * Logging sink. 39 + * 40 + */ 41 + 28 42 // Logging sink global data. 29 43 static u_log_sink_func_t g_log_sink_func; 30 44 static void *g_log_sink_data; ··· 43 57 g_log_sink_func(FILE, LINE, FUNC, LEVEL, FORMAT, copy, g_log_sink_data); \ 44 58 va_end(copy); \ 45 59 } 60 + 61 + 62 + /* 63 + * 64 + * Hexdump functions. 65 + * 66 + */ 46 67 47 68 static void 48 69 u_log_hexdump_line(char *buf, size_t offset, const uint8_t *data, size_t data_size) ··· 123 144 } 124 145 } 125 146 147 + 148 + /* 149 + * 150 + * General logging functions. 151 + * 152 + */ 126 153 127 154 #if defined(XRT_OS_ANDROID) 128 155