You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
244 B

1 year ago
  1. #include "logger.hpp"
  2. #include <stdarg.h>
  3. #include <stdio.h>
  4. void zos_log(const char *fmt, ...) {
  5. va_list args;
  6. va_start(args, fmt);
  7. char buf[1024] = {0};
  8. vsnprintf(buf, sizeof(buf), fmt, args);
  9. printf("%s", buf);
  10. va_end(args);
  11. }