From 6fbe16f40fbd43a0f582b255950f58d0305e3a2c Mon Sep 17 00:00:00 2001 From: yinshengkai Date: Tue, 20 Aug 2024 14:39:09 +0800 Subject: [PATCH] libs: remove lib_libbsprintf automatic line wrapping Signed-off-by: yinshengkai --- libs/libc/stdio/lib_libbsprintf.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libs/libc/stdio/lib_libbsprintf.c b/libs/libc/stdio/lib_libbsprintf.c index a6dda523b3..4520113d0e 100644 --- a/libs/libc/stdio/lib_libbsprintf.c +++ b/libs/libc/stdio/lib_libbsprintf.c @@ -196,11 +196,5 @@ int lib_bsprintf(FAR struct lib_outstream_s *s, FAR const IPTR char *fmt, } } - if (*(fmt - 2) != '\n') - { - lib_stream_putc(s, '\n'); - ret++; - } - return ret; }