diff --git a/src/viced/host.c b/src/viced/host.c index 14570abd46..c2e0fe56fe 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -3065,22 +3065,23 @@ initInterfaceAddr_r(struct host *host, struct interfaceAddr *interf) afs_uint16 myPort; int found; struct Interface *interface; + char hoststr[16]; assert(host); assert(interf); - ViceLog(125, - ("initInterfaceAddr : host %x numAddr %d\n", host->host, - interf->numberOfInterfaces)); - number = interf->numberOfInterfaces; myAddr = host->host; /* current interface address */ myPort = host->port; /* current port */ + ViceLog(125, + ("initInterfaceAddr : host %s:%d numAddr %d\n", + afs_inet_ntoa_r(myAddr, hoststr), ntohs(myPort), number)); + /* validation checks */ if (number < 0 || number > AFS_MAX_INTERFACE_ADDR) { ViceLog(0, - ("Number of alternate addresses returned is %d\n", number)); + ("Invalid number of alternate addresses is %d\n", number)); return -1; } @@ -3136,7 +3137,6 @@ initInterfaceAddr_r(struct host *host, struct interfaceAddr *interf) host->interface = interface; for (i = 0; i < host->interface->numberOfInterfaces; i++) { - char hoststr[16]; ViceLog(125, ("--- alt address %s:%d\n", afs_inet_ntoa_r(host->interface->interface[i].addr, hoststr), ntohs(host->interface->interface[i].port)));