diff options
author | Max <msuraev@sysmocom.de> | 2018-11-22 18:05:53 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2018-11-22 18:05:53 +0100 |
commit | fffd6cb0d8011442bb69974675f86ad087b7d8db (patch) | |
tree | cccd0a62219aa8a1c6d374f8b4e43ab17df40204 | |
parent | 81c97ff632651717d70dc3fb859d14a3ce91424e (diff) |
gbproxy: fix formatting in gbproxy-state command
In ctrl protocol we don't need any explicit formatting as it might
interfere with client processing our response. Let's drop trailing '\n'.
Change-Id: I3f32e01dd50a53991c292aeee57a78d81cdc5429
Related: SYS#2655
-rw-r--r-- | src/gprs/gb_proxy_ctrl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gprs/gb_proxy_ctrl.c b/src/gprs/gb_proxy_ctrl.c index 032d8d45b..694a2f7f5 100644 --- a/src/gprs/gb_proxy_ctrl.c +++ b/src/gprs/gb_proxy_ctrl.c @@ -64,7 +64,7 @@ static int get_gbproxy_state(struct ctrl_cmd *cmd, void *data) struct gprs_ra_id raid; gsm48_parse_ra(&raid, peer->ra); - cmd->reply = talloc_asprintf_append(cmd->reply, "%u,%u,%u,%u,%u,%u,%s\n", + cmd->reply = talloc_asprintf_append(cmd->reply, "%u,%u,%u,%u,%u,%u,%s", peer->nsei, peer->bvci, raid.mcc, raid.mnc, raid.lac, raid.rac, |