]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
ptserver: improve PR_GetHostCPS logging
authorMark Vitale <mvitale@sinenomine.net>
Tue, 24 Apr 2018 18:41:11 +0000 (14:41 -0400)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 8 Jun 2018 12:31:43 +0000 (08:31 -0400)
The IP address of the host is logged as a signed number.  Instead, log
it as the unsigned (and hex) representation of the host IP addr.

Reviewed-on: https://gerrit.openafs.org/13043
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit 8225518cd08b810bf3d8c74e27e3d3a753b6b30b)

Change-Id: Idbb380fa0c9d71398ea2d47ba49fd217be9f9f26
Reviewed-on: https://gerrit.openafs.org/13147
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/ptserver/ptprocs.c

index 039077ac2be18cdeddd837d1d2c10a4fb16fa1a1..3045ef45f5dcc3cd6fd257340b473da3ca26b798 100644 (file)
@@ -1238,7 +1238,7 @@ SPR_GetHostCPS(struct rx_call *call, afs_int32 ahost, prlist *alist,
 
     code = getHostCPS(call, ahost, alist, over, &cid);
     osi_auditU(call, PTS_GetHCPSEvent, code, AUD_HOST, htonl(ahost), AUD_END);
-    ViceLog(125, ("PTS_GetHostCPS: code %d ahost %d\n", code, ahost));
+    ViceLog(125, ("PTS_GetHostCPS: code %d ahost %u (0x%x)\n", code, ahost, ahost));
     return code;
 }