Project

General

Profile

Bug #3627

osmo_ortp.c:my_ortp_logfn does not add endline char during log

Added by pespin 18 days ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
-
Start date:
10/04/2018
Due date:
% Done:

0%

Spec Reference:

Description

During osmo-bts processing, I found the following lines all over the place without endlines, and all are related to osmo_ortp.c:

osmo_ortp.c:0 Sending RTCP SR compound message on session [0x7ffff1728f20].20181003200335480 DMEAS ... whatever here....

That's log output coming fro ortp itself. In order to feed the information into our log system, we use function "my_ortp_logfn".
I'd strlen(fmt), then check if last char is '\n', and otherwise use a new buffer and copy fmt + append '\n'.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)