1
0

nxlog.c 393 B

12345678910111213141516171819
  1. #include "nxlog.h"
  2. #include <stdio.h>
  3. #include <stdarg.h>
  4. //#include <windows.h>
  5. static char *nx_log_tag = "libreplicant";
  6. #define MAX_FMT_SIZE 512
  7. void NXLog(int priority, char *fmt, ...){
  8. char formatted_string[MAX_FMT_SIZE];
  9. va_list argptr;
  10. va_start(argptr,fmt);
  11. vsnprintf(formatted_string, MAX_FMT_SIZE, fmt, argptr);
  12. va_end(argptr);
  13. // OutputDebugString(formatted_string);
  14. }