Skip to content

Commit e9cac1d

Browse files
committed
logger: fix format, no discard the last \n in that case
1 parent 51eefd5 commit e9cac1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/log.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void stub_lib_log_printf(const char *fmt, ...)
7070
break;
7171
default:
7272
buf[0] = '%';
73-
buf[1] = *fmt ? *fmt++ : '\0';
73+
buf[1] = *fmt;
7474
buf[2] = '\0';
7575
ets_printf("%s", buf);
7676
break;

0 commit comments

Comments
 (0)