osmux: Add square brackets around IPv6 address to distinguish port in log line

Change-Id: I811ac5b4386f06c224f29f44f10dce4008fa7a4f
This commit is contained in:
Pau Espin 2022-10-06 10:29:47 +02:00
parent 8e0d101997
commit 3779919551
1 changed files with 1 additions and 1 deletions

View File

@ -473,7 +473,7 @@ int osmux_init(int role, struct mgcp_trunk *trunk)
ret = mgcp_create_bind(cfg->osmux_addr_v6, &osmux_fd_v6, cfg->osmux_port,
cfg->endp_dscp, cfg->endp_priority);
if (ret < 0) {
LOGP(DOSMUX, LOGL_ERROR, "Cannot bind OSMUX IPv6 socket to %s:%u\n",
LOGP(DOSMUX, LOGL_ERROR, "Cannot bind OSMUX IPv6 socket to [%s]:%u\n",
cfg->osmux_addr_v6, cfg->osmux_port);
return ret;
}