projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add comments for the relayd ctrl socket mutex
[lttng-tools.git]
/
src
/
common
/
uri.c
diff --git
a/src/common/uri.c
b/src/common/uri.c
index f97b0bba8504b052cb18978f18a1529fefa47c38..6ca46474f06086666b68d22fa1871b51bebfdc9f 100644
(file)
--- 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 */
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;
}
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) {
ret = sscanf(str_uri, "%5[^:]://", net);
if (ret < 1) {
-
printf("bad protocol\n"
);
+
ERR("URI parse bad protocol %s", str_uri
);
goto error;
}
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) {
proto = validate_protocol(net);
if (proto == NULL) {
-
printf("no protocol\n"
);
+
ERR("URI parse unknown protocol %s", net
);
ret = -1;
goto error;
}
ret = -1;
goto error;
}
This page took
0.080491 seconds
and
4
git commands to generate.