diff options
Diffstat (limited to 'tests/unit/stubs/esp_log.h')
| -rw-r--r-- | tests/unit/stubs/esp_log.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/unit/stubs/esp_log.h b/tests/unit/stubs/esp_log.h new file mode 100644 index 0000000..f353fe9 --- /dev/null +++ b/tests/unit/stubs/esp_log.h | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | #ifndef STUBS_ESP_LOG_H | ||
| 2 | #define STUBS_ESP_LOG_H | ||
| 3 | |||
| 4 | #include <stdio.h> | ||
| 5 | |||
| 6 | #define ESP_LOGI(tag, fmt, ...) do { printf("I %s: " fmt "\n", tag, ##__VA_ARGS__); } while(0) | ||
| 7 | #define ESP_LOGW(tag, fmt, ...) do { printf("W %s: " fmt "\n", tag, ##__VA_ARGS__); } while(0) | ||
| 8 | #define ESP_LOGE(tag, fmt, ...) do { fprintf(stderr, "E %s: " fmt "\n", tag, ##__VA_ARGS__); } while(0) | ||
| 9 | |||
| 10 | #endif | ||