From b4a50a91923a470e158461d9b46d15735425064a Mon Sep 17 00:00:00 2001 From: zhongan Date: Wed, 15 Apr 2020 17:45:28 +0800 Subject: [PATCH] fix nxstyle warning. Signed-off-by: zhongan --- arch/sim/src/sim/up_rptun.c | 3 ++- drivers/syslog/syslog_rpmsg.c | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/arch/sim/src/sim/up_rptun.c b/arch/sim/src/sim/up_rptun.c index 07fe4af608..10339c00c2 100644 --- a/arch/sim/src/sim/up_rptun.c +++ b/arch/sim/src/sim/up_rptun.c @@ -206,7 +206,8 @@ int up_rptun_init(void) rsc->rsc_tbl_hdr.ver = 1; rsc->rsc_tbl_hdr.num = 1; - rsc->offset[0] = offsetof(struct rptun_rsc_s, rpmsg_vdev); + rsc->offset[0] = offsetof(struct rptun_rsc_s, + rpmsg_vdev); rsc->rpmsg_vdev.type = RSC_VDEV; rsc->rpmsg_vdev.id = VIRTIO_ID_RPMSG; rsc->rpmsg_vdev.dfeatures = 1 << VIRTIO_RPMSG_F_NS diff --git a/drivers/syslog/syslog_rpmsg.c b/drivers/syslog/syslog_rpmsg.c index 5a9ea32928..cec7f30a4d 100644 --- a/drivers/syslog/syslog_rpmsg.c +++ b/drivers/syslog/syslog_rpmsg.c @@ -177,7 +177,8 @@ static void syslog_rpmsg_putchar(FAR struct syslog_rpmsg_s *priv, int ch, priv->buffer[B2C_OFF(priv->head)] = 0; } - priv->buffer[B2C_OFF(priv->head)] |= (ch & 0xff) << (8 * B2C_REM(priv->head)); + priv->buffer[B2C_OFF(priv->head)] |= (ch & 0xff) << + (8 * B2C_REM(priv->head)); priv->head += 1; if (priv->head >= C2B(priv->size)) @@ -276,8 +277,9 @@ static void syslog_rpmsg_device_destroy(FAR struct rpmsg_device *rdev, } } -static int syslog_rpmsg_ept_cb(FAR struct rpmsg_endpoint *ept, FAR void *data, - size_t len, uint32_t src, FAR void *priv_) +static int syslog_rpmsg_ept_cb(FAR struct rpmsg_endpoint *ept, + FAR void *data, size_t len, uint32_t src, + FAR void *priv_) { FAR struct syslog_rpmsg_s *priv = priv_; FAR struct syslog_rpmsg_header_s *header = data;