subsys: shell: support posix arch

The posix arch does not compile either of Zephyr's libc,
so _prf() is not avaliable

Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
This commit is contained in:
Alberto Escolar Piedras 2018-09-24 15:57:52 +02:00 committed by Carles Cufí
parent 5df93af87a
commit c09b76abd0
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ static int out_func(int c, void *ctx)
void shell_fprintf_fmt(const struct shell_fprintf *sh_fprintf,
const char *fmt, va_list args)
{
#ifndef CONFIG_NEWLIB_LIBC
#if !defined(CONFIG_NEWLIB_LIBC) && !defined(CONFIG_ARCH_POSIX)
(void)_prf(out_func, (void *)sh_fprintf, (char *)fmt, args);
#else
_vprintk(out_func, (void *)sh_fprintf, fmt, args);