Skip to content

Commit e36a73f

Browse files
committed
logger: fix format, no discard the last \n in that case
1 parent 72546d9 commit e36a73f

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
@@ -65,7 +65,7 @@ void stub_lib_log_printf(const char *fmt, ...)
6565
break;
6666
default:
6767
buf[0] = '%';
68-
buf[1] = *fmt ? *fmt++ : '\0';
68+
buf[1] = *fmt;
6969
buf[2] = '\0';
7070
ets_printf("%s", buf);
7171
break;

0 commit comments

Comments
 (0)