Advertisement
Guest User

Untitled

a guest
Jan 30th, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <stdarg.h>
  2. #include <string.h>
  3. #include "log.h"
  4.  
  5. static void *log_buf;
  6.  
  7. void init_log(void)
  8. {
  9. log_buf = malloc(2 * 4096);
  10. }
  11.  
  12. void do_log(struct log_msg *m, ...)
  13. {
  14. va_list args;
  15. int i;
  16.  
  17. log_copy_long((unsigned long)m, log_buf);
  18. va_start(args, m);
  19. m->copy_args(args, log_buf);
  20. va_end(args);
  21. }
  22.  
  23. void flush_log(void)
  24. {
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement