]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
viced-host-logging-20060505
authorJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 5 May 2006 17:27:21 +0000 (17:27 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 5 May 2006 17:27:21 +0000 (17:27 +0000)
another place where dotted notation and port numbers were not being used
in log output.

src/viced/host.c

index 14570abd465adfbf017a8664726ea0ebb0715227..c2e0fe56fefc5e17ad22ea7a0012fc911a22f713 100644 (file)
@@ -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)));