arch: Add up_nputs function to handle the non '\0' string correctly

and change up_puts as a simple macro

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-07-14 11:22:50 +08:00
committed by Petro Karashchenko
parent 02ea79365a
commit aad5fbd2fb
42 changed files with 247 additions and 266 deletions
+2 -1
View File
@@ -2552,7 +2552,8 @@ int up_putc(int ch);
*
****************************************************************************/
void up_puts(FAR const char *str);
#define up_puts(str) up_nputs(str, ~((size_t)0))
void up_nputs(FAR const char *str, size_t len);
/****************************************************************************
* Name: arch_sporadic_*