* Write a debug message. */
| 236 | * Write a debug message. |
| 237 | */ |
| 238 | static NO_INLINE void e9debug_impl(void *stderr, write_console_t WriteConsole, |
| 239 | const char *msg, ...) |
| 240 | { |
| 241 | char buf[BUFSIZ], *str = buf; |
| 242 | str = e9write_str(str, "e9patch loader debug: "); |
| 243 | va_list ap; |
| 244 | va_start(ap, msg); |
| 245 | str = e9write_format(str, msg, ap); |
| 246 | va_end(ap); |
| 247 | str = e9write_char(str, '\n'); |
| 248 | |
| 249 | size_t len = str - buf; |
| 250 | WriteConsole(stderr, buf, len, NULL, NULL); |
| 251 | } |
| 252 | #define e9debug(msg, ...) \ |
| 253 | e9debug_impl(stderr, WriteConsole, msg, ##__VA_ARGS__) |
| 254 |
nothing calls this directly
no test coverage detected