aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmux.c
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-10-04 12:30:32 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-10-04 12:32:13 +0200
commitb4486278b97bbbef3c0c1a99b85a57941d235745 (patch)
treeb1fd3ab34d96ff887f2642b4546ee56fc822ba00 /src/osmux.c
parent8c7d62f6d2041693f6762c3acb03404934d1b52a (diff)
osmux: osmux_snprintf(): Append comma between osmux frames in msg
Diffstat (limited to 'src/osmux.c')
-rw-r--r--src/osmux.c5
1 files changed, 4 insertions, 1 deletions
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);