From: Jeffrey Altman Date: Fri, 5 May 2006 17:28:55 +0000 (+0000) Subject: STABLE14-viced-host-logging-20060505 X-Git-Tag: openafs-stable-1_4_1b~10 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b20a5f7b37f3a3993971b8fea9333d45cb4141bc;p=packages%2Fo%2Fopenafs.git STABLE14-viced-host-logging-20060505 another place where dotted notation and port numbers were not being used in log output. (cherry picked from commit ada9819fd630f6cbe6fb8d442e79326df1fcdcad) --- diff --git a/src/viced/host.c b/src/viced/host.c index e7c6b11a5..ce57edd48 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -2481,22 +2481,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; } @@ -2552,7 +2553,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)));