mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 13:13:08 +08:00
arm/common: Fix arm_nputs.c to avoid mult. up_nputs() definitions
When SEMIHOST_SYSLOG is enabled up_nputs() could be defined twice. Signed-off-by: Alan C. Assis <acassis@gmail.com>
This commit is contained in:
committed by
Matteo Golin
parent
097c594aba
commit
5d784a2abc
@@ -39,6 +39,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_ARM_SEMIHOSTING_SYSLOG
|
||||
void up_nputs(const char *str, size_t len)
|
||||
{
|
||||
while (len-- > 0 && *str)
|
||||
@@ -46,3 +47,4 @@ void up_nputs(const char *str, size_t len)
|
||||
up_putc(*str++);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user