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
This commit is contained in:
Pau Espin Pedrol
2022-07-01 17:22:34 +02:00
parent b38bc5cb38
commit 9f2a1e3013

View File

@@ -241,18 +241,18 @@ int main(int argc, char **argv)
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);
}