osmux: osmux_snprintf(): Append comma between osmux frames in msg

Change-Id: I7acaba9429466db6cb5700b206d6b42da5e4627a
This commit is contained in:
Pau Espin 2019-10-04 12:30:32 +02:00
parent 8c7d62f6d2
commit b4486278b9
1 changed files with 4 additions and 1 deletions

View File

@ -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);