mirror of
https://git.openafs.org/openafs.git
synced 2025-01-20 16:00:12 +00:00
viced-host-logging-20060505
another place where dotted notation and port numbers were not being used in log output.
This commit is contained in:
parent
86ff4c4d6b
commit
ada9819fd6
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user