Experimental Debug text fixes.

This commit is contained in:
MissValeska 2014-10-26 07:21:35 -07:00
parent cfa05e3a64
commit 67b7f162ff

View File

@ -1117,9 +1117,16 @@ inet_sendto(int s, const void *msg, size_t len, int flags,
len-(len/2), flags, to, tolen); len-(len/2), flags, to, tolen);
break; break;
case EFAULT: case EFAULT:
char ipv4_addr;
error("To Family is: %hu " error("To Family is: %hu "
"To Data is: %c " "To Data is: %s "
"and: %s", to->sa_family, to->sa_data[14], strerror(errno)); "and: %s", to->sa_family,
inet_ntop(to->sa_family,
&(((struct sockaddr_in*)to)->sin_addr),
ipv4_addr, sizeof ipv4_addr),
strerror(errno));
default: default:
error("inet_sendto: Cannot send(): %s", strerror(errno)); error("inet_sendto: Cannot send(): %s", strerror(errno));
return err; return err;