Change in ...libosmo-netif[master]: osmux: osmux_snprintf(): Append comma between osmux frames in msg

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Fri Oct 4 11:51:09 UTC 2019


laforge has submitted this change and it was merged. ( 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(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



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 <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191004/6b5cd03f/attachment.htm>


More information about the gerrit-log mailing list