Skip to content

Commit 39c17df

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 91cab82 commit 39c17df

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

Diff for: cores/esp32/esp32-hal-log.h

+36-36
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,16 @@ void log_print_buf(const uint8_t *b, size_t len);
108108
ARDUHAL_LOG_COLOR_PRINT_END; \
109109
} while (0)
110110
#else
111-
#define log_v(format, ...) \
112-
do { \
111+
#define log_v(format, ...) \
112+
do { \
113113
ESP_LOG_LEVEL_LOCAL(ESP_LOG_VERBOSE, ARDUHAL_ESP_LOG_TAG, format, ##__VA_ARGS__); \
114114
} while (0)
115-
#define isr_log_v(format, ...) \
116-
do { \
115+
#define isr_log_v(format, ...) \
116+
do { \
117117
ets_printf(LOG_FORMAT(V, format), esp_log_timestamp(), ARDUHAL_ESP_LOG_TAG, ##__VA_ARGS__); \
118118
} while (0)
119-
#define log_buf_v(b, l) \
120-
do { \
119+
#define log_buf_v(b, l) \
120+
do { \
121121
ESP_LOG_BUFFER_HEXDUMP(ARDUHAL_ESP_LOG_TAG, b, l, ESP_LOG_VERBOSE); \
122122
} while (0)
123123
#endif
@@ -144,16 +144,16 @@ void log_print_buf(const uint8_t *b, size_t len);
144144
ARDUHAL_LOG_COLOR_PRINT_END; \
145145
} while (0)
146146
#else
147-
#define log_d(format, ...) \
148-
do { \
147+
#define log_d(format, ...) \
148+
do { \
149149
ESP_LOG_LEVEL_LOCAL(ESP_LOG_DEBUG, ARDUHAL_ESP_LOG_TAG, format, ##__VA_ARGS__); \
150150
} while (0)
151-
#define isr_log_d(format, ...) \
152-
do { \
151+
#define isr_log_d(format, ...) \
152+
do { \
153153
ets_printf(LOG_FORMAT(D, format), esp_log_timestamp(), ARDUHAL_ESP_LOG_TAG, ##__VA_ARGS__); \
154154
} while (0)
155-
#define log_buf_d(b, l) \
156-
do { \
155+
#define log_buf_d(b, l) \
156+
do { \
157157
ESP_LOG_BUFFER_HEXDUMP(ARDUHAL_ESP_LOG_TAG, b, l, ESP_LOG_DEBUG); \
158158
} while (0)
159159
#endif
@@ -180,16 +180,16 @@ void log_print_buf(const uint8_t *b, size_t len);
180180
ARDUHAL_LOG_COLOR_PRINT_END; \
181181
} while (0)
182182
#else
183-
#define log_i(format, ...) \
184-
do { \
183+
#define log_i(format, ...) \
184+
do { \
185185
ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, ARDUHAL_ESP_LOG_TAG, format, ##__VA_ARGS__); \
186186
} while (0)
187-
#define isr_log_i(format, ...) \
188-
do { \
187+
#define isr_log_i(format, ...) \
188+
do { \
189189
ets_printf(LOG_FORMAT(I, format), esp_log_timestamp(), ARDUHAL_ESP_LOG_TAG, ##__VA_ARGS__); \
190190
} while (0)
191-
#define log_buf_i(b, l) \
192-
do { \
191+
#define log_buf_i(b, l) \
192+
do { \
193193
ESP_LOG_BUFFER_HEXDUMP(ARDUHAL_ESP_LOG_TAG, b, l, ESP_LOG_INFO); \
194194
} while (0)
195195
#endif
@@ -216,16 +216,16 @@ void log_print_buf(const uint8_t *b, size_t len);
216216
ARDUHAL_LOG_COLOR_PRINT_END; \
217217
} while (0)
218218
#else
219-
#define log_w(format, ...) \
220-
do { \
219+
#define log_w(format, ...) \
220+
do { \
221221
ESP_LOG_LEVEL_LOCAL(ESP_LOG_WARN, ARDUHAL_ESP_LOG_TAG, format, ##__VA_ARGS__); \
222222
} while (0)
223-
#define isr_log_w(format, ...) \
224-
do { \
223+
#define isr_log_w(format, ...) \
224+
do { \
225225
ets_printf(LOG_FORMAT(W, format), esp_log_timestamp(), ARDUHAL_ESP_LOG_TAG, ##__VA_ARGS__); \
226226
} while (0)
227-
#define log_buf_w(b, l) \
228-
do { \
227+
#define log_buf_w(b, l) \
228+
do { \
229229
ESP_LOG_BUFFER_HEXDUMP(ARDUHAL_ESP_LOG_TAG, b, l, ESP_LOG_WARN); \
230230
} while (0)
231231
#endif
@@ -252,16 +252,16 @@ void log_print_buf(const uint8_t *b, size_t len);
252252
ARDUHAL_LOG_COLOR_PRINT_END; \
253253
} while (0)
254254
#else
255-
#define log_e(format, ...) \
256-
do { \
255+
#define log_e(format, ...) \
256+
do { \
257257
ESP_LOG_LEVEL_LOCAL(ESP_LOG_ERROR, ARDUHAL_ESP_LOG_TAG, format, ##__VA_ARGS__); \
258258
} while (0)
259-
#define isr_log_e(format, ...) \
260-
do { \
259+
#define isr_log_e(format, ...) \
260+
do { \
261261
ets_printf(LOG_FORMAT(E, format), esp_log_timestamp(), ARDUHAL_ESP_LOG_TAG, ##__VA_ARGS__); \
262262
} while (0)
263-
#define log_buf_e(b, l) \
264-
do { \
263+
#define log_buf_e(b, l) \
264+
do { \
265265
ESP_LOG_BUFFER_HEXDUMP(ARDUHAL_ESP_LOG_TAG, b, l, ESP_LOG_ERROR); \
266266
} while (0)
267267
#endif
@@ -288,16 +288,16 @@ void log_print_buf(const uint8_t *b, size_t len);
288288
ARDUHAL_LOG_COLOR_PRINT_END; \
289289
} while (0)
290290
#else
291-
#define log_n(format, ...) \
292-
do { \
291+
#define log_n(format, ...) \
292+
do { \
293293
ESP_LOG_LEVEL_LOCAL(ESP_LOG_ERROR, ARDUHAL_ESP_LOG_TAG, format, ##__VA_ARGS__); \
294294
} while (0)
295-
#define isr_log_n(format, ...) \
296-
do { \
295+
#define isr_log_n(format, ...) \
296+
do { \
297297
ets_printf(LOG_FORMAT(E, format), esp_log_timestamp(), ARDUHAL_ESP_LOG_TAG, ##__VA_ARGS__); \
298298
} while (0)
299-
#define log_buf_n(b, l) \
300-
do { \
299+
#define log_buf_n(b, l) \
300+
do { \
301301
ESP_LOG_BUFFER_HEXDUMP(ARDUHAL_ESP_LOG_TAG, b, l, ESP_LOG_ERROR); \
302302
} while (0)
303303
#endif

0 commit comments

Comments
 (0)