1 #include <errno.h>
2 #include <stdarg.h>
3 #include <stdlib.h>
4 
5 #include "log.h"
6 
7 static const char *tag = "udev";
8 
log_parse_environment(void)9 void log_parse_environment(void)
10 {
11 }
12 
log_oom_internal(const char *file, int line, const char *func)13 int log_oom_internal(const char *file, int line, const char *func)
14 {
15     return -ENOMEM;
16 }
17 
log_assert_failed(const char *text, const char *file, int line, const char *func)18 void log_assert_failed(const char *text, const char *file, int line, const char *func)
19 {
20     abort();
21 }
22 
log_assert_failed_unreachable(const char *text, const char *file, int line, const char *func)23 void log_assert_failed_unreachable(const char *text, const char *file, int line, const char *func)
24 {
25     abort();
26 }
27 
log_meta(int level, const char*file, int line, const char *func, const char *format, ...)28 int log_meta(int level, const char*file, int line, const char *func, const char *format, ...)
29 {
30     return 0;
31 }
32 
log_metav(int level, const char*file, int line, const char *func, const char *format, va_list ap)33 int log_metav(int level, const char*file, int line, const char *func, const char *format, va_list ap)
34 {
35     return 0;
36 }
37 
log_internal( int level, int error, const char *file, int line, const char *func, const char *format, ...)38 int log_internal(
39                 int level,
40                 int error,
41                 const char *file,
42                 int line,
43                 const char *func,
44                 const char *format, ...)
45 {
46     return 0;
47 }
48 
log_open(void)49 int log_open(void)
50 {
51     return 0;
52 }
53 
log_close(void)54 void log_close(void)
55 {
56 }
57 
log_set_target(LogTarget target)58 void log_set_target(LogTarget target)
59 {
60 }
61 
log_set_max_level(int level)62 void log_set_max_level(int level)
63 {
64 }
65 
log_get_max_level(void)66 int log_get_max_level(void)
67 {
68     return LOG_INFO;
69 }
70