From 07dc013b600837a996216f61222c328ed0bb4f32 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Mon, 21 Dec 2020 15:48:55 +0800 Subject: [PATCH] libs/libc/dumpbuffer: fix nxstyle warning Change-Id: I0f397ea5b210d2c4325ef87afb880e98072414d6 --- libs/libc/misc/lib_dumpbuffer.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libs/libc/misc/lib_dumpbuffer.c b/libs/libc/misc/lib_dumpbuffer.c index cd220bcccef..d10988b3f67 100644 --- a/libs/libc/misc/lib_dumpbuffer.c +++ b/libs/libc/misc/lib_dumpbuffer.c @@ -47,8 +47,11 @@ * Pre-processor definitions ****************************************************************************/ -#define _NITEMS 16 /* 32 bytes displayed per line */ -#define _LINESIZE (3 * _NITEMS + _NITEMS + 4) /* 2 hex chars, ASCII char, 3 spaces, NUL */ +/* 32 bytes displayed per line */ +#define _NITEMS 16 + +/* 2 hex chars, ASCII char, 3 spaces, NUL */ +#define _LINESIZE (3 * _NITEMS + _NITEMS + 4) /**************************************************************************** * Private Functions @@ -149,5 +152,5 @@ void lib_dumpbuffer(FAR const char *msg, FAR const uint8_t *buffer, *ptr = '\0'; /* Plus 1 byte */ syslog(LOG_INFO, "%04x %s\n", i, buf); - } + } }