From b4486278b97bbbef3c0c1a99b85a57941d235745 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Fri, 4 Oct 2019 12:30:32 +0200 Subject: osmux: osmux_snprintf(): Append comma between osmux frames in msg Change-Id: I7acaba9429466db6cb5700b206d6b42da5e4627a --- src/osmux.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/osmux.c b/src/osmux.c index 8b6a115..43b294c 100644 --- a/src/osmux.c +++ b/src/osmux.c @@ -1093,7 +1093,10 @@ int osmux_snprintf(char *buf, size_t size, struct msgb *msg) return -1; } osmuxh = (struct osmux_hdr *)((uint8_t *)msg->data + msg_off); - + if (msg_off) { + ret = snprintf(buf + offset, remain, ", "); + SNPRINTF_BUFFER_SIZE(ret, remain, offset); + } ret = osmux_snprintf_header(buf + offset, remain, osmuxh); SNPRINTF_BUFFER_SIZE(ret, remain, offset); -- cgit v1.2.3