pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/libosmo-netif/+/15667


Change subject: osmux: osmux_snprintf(): Append comma between osmux frames in 
msg
......................................................................

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

Change-Id: I7acaba9429466db6cb5700b206d6b42da5e4627a
---
M src/osmux.c
1 file changed, 4 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/67/15667/1

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


--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/15667
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: I7acaba9429466db6cb5700b206d6b42da5e4627a
Gerrit-Change-Number: 15667
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-MessageType: newchange

Reply via email to