Skip to content

Commit 2447047

Browse files
pre-commit-ci[bot]antmak
authored andcommitted
Apply automatic fixes from pre-commit hooks
1 parent f779715 commit 2447047

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

include/esp-stub-lib/log.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
/* should be power of 2 */
1919
#define STUB_LIB_LOG_BUF_SIZE 4096
2020
struct stub_lib_log_buf {
21-
uint32_t count;
22-
char buf[STUB_LIB_LOG_BUF_SIZE];
21+
uint32_t count;
22+
char buf[STUB_LIB_LOG_BUF_SIZE];
2323
};
2424
extern struct stub_lib_log_buf g_stub_lib_log_buf;
2525

@@ -28,7 +28,6 @@ extern struct stub_lib_log_buf g_stub_lib_log_buf;
2828
void stub_lib_log_init();
2929
void stub_lib_log_printf(const char *fmt, ...);
3030

31-
3231
#define STUB_LOG_INIT() stub_lib_log_init()
3332
#define STUB_LOG(fmt, ...) stub_lib_log_printf(fmt, ##__VA_ARGS__)
3433

src/log.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ static void log_buf_write(char c)
3232
void stub_lib_log_init()
3333
{
3434
#if defined(STUB_LIB_LOG_UART)
35-
stub_target_uart_init(0, 115200);
36-
//fixme: call ets_install_putc1(0)/putc2(0) here?
37-
ets_install_uart_printf();
35+
stub_target_uart_init(0, 115200);
36+
//fixme: call ets_install_putc1(0)/putc2(0) here?
37+
ets_install_uart_printf();
3838
#elif defined(STUB_LIB_LOG_BUF)
39-
ets_install_putc1(log_buf_write);
40-
ets_install_putc2(NULL);
39+
ets_install_putc1(log_buf_write);
40+
ets_install_putc2(NULL);
4141
#else
42-
#error "STUB_LIB_LOG_X destination should be defined"
42+
#error "STUB_LIB_LOG_X destination should be defined"
4343
#endif
4444
}
4545

0 commit comments

Comments
 (0)