log.c 663 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * This is a STUB FILE used when compiling ESP-IDF to run tests on the host system.
  7. * The source file used normally for ESP-IDF has the same name but is located elsewhere.
  8. */
  9. #include <stdio.h>
  10. #include <stdlib.h>
  11. #include <stdarg.h>
  12. #include <time.h>
  13. #include "esp_log.h"
  14. void esp_log_write(esp_log_level_t level,
  15. const char *tag,
  16. const char *format, ...)
  17. {
  18. va_list arg;
  19. va_start(arg, format);
  20. vprintf(format, arg);
  21. va_end(arg);
  22. }
  23. uint32_t esp_log_timestamp(void)
  24. {
  25. return 0;
  26. }