X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Furi.c;h=6ca46474f06086666b68d22fa1871b51bebfdc9f;hb=b3e122872d4f6464ebcbc341b4fa4108c8a9d4a5;hp=f97b0bba8504b052cb18978f18a1529fefa47c38;hpb=6c268e7fceee6859eba560ed72d0963b819e95f9;p=lttng-tools.git diff --git a/src/common/uri.c b/src/common/uri.c index f97b0bba8..6ca46474f 100644 --- a/src/common/uri.c +++ b/src/common/uri.c @@ -91,7 +91,7 @@ static int set_ip_address(const char *addr, int af, char *dst, size_t size) record = gethostbyname2(addr, af); if (record == NULL) { /* At this point, the IP or the hostname is bad */ - printf("bad hostname\n"); + ERR("URI parse bad hostname %s for af %d", addr, af); goto error; } @@ -175,7 +175,7 @@ ssize_t uri_parse(const char *str_uri, struct lttng_uri **uris) ret = sscanf(str_uri, "%5[^:]://", net); if (ret < 1) { - printf("bad protocol\n"); + ERR("URI parse bad protocol %s", str_uri); goto error; } @@ -183,7 +183,7 @@ ssize_t uri_parse(const char *str_uri, struct lttng_uri **uris) proto = validate_protocol(net); if (proto == NULL) { - printf("no protocol\n"); + ERR("URI parse unknown protocol %s", net); ret = -1; goto error; }