mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
syslog_rpmsg: head must bigger then tail when syslog_rpmsg_init
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
@@ -420,6 +420,10 @@ void syslog_rpmsg_init_early(FAR void *buffer, size_t size)
|
|||||||
{
|
{
|
||||||
priv->head = priv->tail = 0;
|
priv->head = priv->tail = 0;
|
||||||
}
|
}
|
||||||
|
else if (priv->head < priv->tail)
|
||||||
|
{
|
||||||
|
priv->head += priv->size;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int syslog_rpmsg_init(void)
|
int syslog_rpmsg_init(void)
|
||||||
|
|||||||
Reference in New Issue
Block a user