Signed-off-by: David Goulet <dgoulet@efficios.com>
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);
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);
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);