From b3e122872d4f6464ebcbc341b4fa4108c8a9d4a5 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Wed, 25 Jul 2012 10:18:41 -0400 Subject: [PATCH] Fix: some error in uri.c were still using printf() Signed-off-by: David Goulet --- src/common/uri.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.34.1