diff options
Diffstat (limited to 'MediaTek/libxlog/xlog.c')
| -rw-r--r-- | MediaTek/libxlog/xlog.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/MediaTek/libxlog/xlog.c b/MediaTek/libxlog/xlog.c new file mode 100644 index 0000000..fbf3228 --- /dev/null +++ b/MediaTek/libxlog/xlog.c @@ -0,0 +1,27 @@ +#include <cutils/log.h> + +struct xlog_record { + const char *tag_str; + const char *fmt_str; + int prio; +}; + +static void init(void) __attribute__ ((constructor)); + +void init(void) +{ +} + +int __xlog_buf_printf(int bufid, const struct xlog_record *rec, ...) +{ + va_list args; + va_start(args, rec); + LOG_PRI_VA(rec->prio, rec->tag_str, rec->fmt_str, args); + va_end(args); + + return 0; +} + +void dl_unregister_notify_function(void){return 0;} + +void dl_register_notify_function(int (*load_notify_function) (const char *name,uintptr_t address,uintptr_t size ),int (*unload_notify_function) (const char *name, uintptr_t address)){return 0;} |
