pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-cbc/+/28498 )
Change subject: main: remove newline char in perror() call ......................................................................
main: remove newline char in perror() call
perror() appends ":" immediatelly afterwards in order to append the error string, so having a newline breaks the format.
Change-Id: I14874c2c86495c83030fa40c7060706e9dfe1968 --- M src/cbc_main.c 1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-cbc refs/changes/98/28498/1
diff --git a/src/cbc_main.c b/src/cbc_main.c index 868a28e..2ce5287 100644 --- a/src/cbc_main.c +++ b/src/cbc_main.c @@ -241,18 +241,18 @@
rc = telnet_init_dynif(tall_cbc_ctx, NULL, vty_get_bind_addr(), OSMO_VTY_PORT_CBC); if (rc < 0) { - perror("Error binding VTY port\n"); + perror("Error binding VTY port"); exit(1); }
if (cbsp_cbc_create(tall_cbc_ctx) == NULL) { - perror("Error binding CBSP port\n"); + perror("Error binding CBSP port"); exit(1); }
rc = rest_api_init(tall_rest_ctx, g_cbc->config.ecbe.local_host, g_cbc->config.ecbe.local_port); if (rc < 0) { - perror("Error binding ECBE port\n"); + perror("Error binding ECBE port"); exit(1); }