syslog/rpmsg: fix the naming conflict of function 'syslog_rpmsg_putc'.
Change-Id: I3f89bfed71edb85bc3006446c1f9141e95202b5c Signed-off-by: zhongan <zhongan@xiaomi.com>
This commit is contained in:
parent
6548b41cab
commit
ab566de77a
@ -88,8 +88,8 @@ struct syslog_rpmsg_s
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static void syslog_rpmsg_work(FAR void *priv_);
|
static void syslog_rpmsg_work(FAR void *priv_);
|
||||||
static void syslog_rpmsg_putc(FAR struct syslog_rpmsg_s *priv, int ch,
|
static void syslog_rpmsg_putchar(FAR struct syslog_rpmsg_s *priv, int ch,
|
||||||
bool last);
|
bool last);
|
||||||
static int syslog_rpmsg_flush(void);
|
static int syslog_rpmsg_flush(void);
|
||||||
static ssize_t syslog_rpmsg_write(FAR const char *buffer, size_t buflen);
|
static ssize_t syslog_rpmsg_write(FAR const char *buffer, size_t buflen);
|
||||||
static void syslog_rpmsg_device_created(FAR struct rpmsg_device *rdev,
|
static void syslog_rpmsg_device_created(FAR struct rpmsg_device *rdev,
|
||||||
@ -177,8 +177,8 @@ static void syslog_rpmsg_work(FAR void *priv_)
|
|||||||
rpmsg_send_nocopy(&priv->ept, msg, sizeof(*msg) + len);
|
rpmsg_send_nocopy(&priv->ept, msg, sizeof(*msg) + len);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void syslog_rpmsg_putc(FAR struct syslog_rpmsg_s *priv, int ch,
|
static void syslog_rpmsg_putchar(FAR struct syslog_rpmsg_s *priv, int ch,
|
||||||
bool last)
|
bool last)
|
||||||
{
|
{
|
||||||
if (B2C_REM(priv->head) == 0)
|
if (B2C_REM(priv->head) == 0)
|
||||||
{
|
{
|
||||||
@ -244,7 +244,7 @@ static ssize_t syslog_rpmsg_write(FAR const char *buffer, size_t buflen)
|
|||||||
flags = enter_critical_section();
|
flags = enter_critical_section();
|
||||||
for (nwritten = 1; nwritten <= buflen; nwritten++)
|
for (nwritten = 1; nwritten <= buflen; nwritten++)
|
||||||
{
|
{
|
||||||
syslog_rpmsg_putc(priv, *buffer++, nwritten == buflen);
|
syslog_rpmsg_putchar(priv, *buffer++, nwritten == buflen);
|
||||||
}
|
}
|
||||||
|
|
||||||
leave_critical_section(flags);
|
leave_critical_section(flags);
|
||||||
@ -352,7 +352,7 @@ int syslog_rpmsg_putc(int ch)
|
|||||||
irqstate_t flags;
|
irqstate_t flags;
|
||||||
|
|
||||||
flags = enter_critical_section();
|
flags = enter_critical_section();
|
||||||
syslog_rpmsg_putc(priv, ch, true);
|
syslog_rpmsg_putchar(priv, ch, true);
|
||||||
leave_critical_section(flags);
|
leave_critical_section(flags);
|
||||||
|
|
||||||
return ch;
|
return ch;
|
||||||
|
Loading…
Reference in New Issue
Block a user