Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdarg.h>
- #include <string.h>
- #include "log.h"
- static void *log_buf;
- void init_log(void)
- {
- log_buf = malloc(2 * 4096);
- }
- void do_log(struct log_msg *m, ...)
- {
- va_list args;
- int i;
- log_copy_long((unsigned long)m, log_buf);
- va_start(args, m);
- m->copy_args(args, log_buf);
- va_end(args);
- }
- void flush_log(void)
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement