mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-07-18 04:08:57 +08:00
CNxServer: Can't use printf in this context.
This commit is contained in:
parent
15ee00996a
commit
62d15ba6fb
@ -248,11 +248,11 @@ bool CNxServer::connect(void)
|
|||||||
#ifdef CONFIG_NXWIDGET_SERVERINIT
|
#ifdef CONFIG_NXWIDGET_SERVERINIT
|
||||||
// Start the NX server kernel thread
|
// Start the NX server kernel thread
|
||||||
|
|
||||||
printf("CNxServer::connect: Starting NX server\n");
|
ginfo("CNxServer::connect: Starting NX server\n");
|
||||||
ret = boardctl(BOARDIOC_NX_START, 0);
|
ret = boardctl(BOARDIOC_NX_START, 0);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
printf("ERROR: CNxServer::connect: Failed to start the NX server: %d\n", errno);
|
gerr("ERROR: CNxServer::connect: Failed to start the NX server: %d\n", errno);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif // CONFIG_NXWIDGET_SERVERINIT
|
#endif // CONFIG_NXWIDGET_SERVERINIT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user