this repo has no description
1
fork

Configure Feed

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

Implement _os_log_internal

This should help debug curl (#463)

+9 -3
+9 -3
src/libc/os/log.c
··· 1 1 #include <os/log.h> 2 2 3 3 #include <stdio.h> 4 + #include <stdarg.h> 4 5 5 6 struct os_log_s 6 7 { ··· 39 40 40 41 void _os_log_internal(void *dso, os_log_t log, os_log_type_t type, const char *message, ...) 41 42 { 42 - printf("_os_log_internal called: %s\n", message); 43 + va_list ap; 44 + printf("_os_log_internal called: "); 45 + va_start(ap, message); 46 + vprintf(message, ap); 47 + va_end(ap); 48 + printf("\n"); 43 49 } 44 50 45 51 os_log_t _os_log_create(void *dso, const char *subsystem, const char *category) ··· 50 56 51 57 bool os_log_is_enabled(os_log_t log) 52 58 { 53 - printf("os_log_is_enabled called"); 59 + printf("os_log_is_enabled called\n"); 54 60 return 1; 55 61 } 56 62 57 63 bool os_log_is_debug_enabled(os_log_t log) 58 64 { 59 - printf("os_log_is_debug_enabled called"); 65 + printf("os_log_is_debug_enabled called\n"); 60 66 return 1; 61 67 }