upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests/unit/stubs/esp_log.h
blob: b9d44b30caad1ebd3c6895a533a2dcd60d57a3bb (plain)
1
2
3
4
5
6
7
8
9
10
11
#ifndef STUBS_ESP_LOG_H
#define STUBS_ESP_LOG_H

#include <stdio.h>

#define ESP_LOGI(tag, fmt, ...) do { printf("I %s: " fmt "\n", tag, ##__VA_ARGS__); } while(0)
#define ESP_LOGW(tag, fmt, ...) do { printf("W %s: " fmt "\n", tag, ##__VA_ARGS__); } while(0)
#define ESP_LOGE(tag, fmt, ...) do { fprintf(stderr, "E %s: " fmt "\n", tag, ##__VA_ARGS__); } while(0)
#define ESP_LOGD(tag, fmt, ...) do { } while(0)

#endif