X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Furi.c;fp=src%2Fcommon%2Furi.c;h=408b75cd73c7e9808a47c30196372a2ffbe8dde6;hp=712339a5fded2efce62d2475f00282e63c061534;hb=b664f89a924cc708174003a2b570f5a221905b8e;hpb=1a2416565951eff19530564c552931cc71866e8c diff --git a/src/common/uri.c b/src/common/uri.c index 712339a5f..408b75cd7 100644 --- a/src/common/uri.c +++ b/src/common/uri.c @@ -201,7 +201,7 @@ int uri_to_str_url(struct lttng_uri *uri, char *dst, size_t size) } else { ipver = (uri->dtype == LTTNG_DST_IPV4) ? 4 : 6; addr = (ipver == 4) ? uri->dst.ipv4 : uri->dst.ipv6; - (void) snprintf(proto, sizeof(proto), "net%d", ipver); + (void) snprintf(proto, sizeof(proto), "tcp%d", ipver); (void) snprintf(port, sizeof(port), ":%d", uri->port); }