From: Mark Vitale Date: Tue, 24 Apr 2018 18:41:11 +0000 (-0400) Subject: ptserver: improve PR_GetHostCPS logging X-Git-Tag: upstream/1.8.1_pre2^2~29 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=ba18ab004566b82b52882326727fa33a297bd05c;p=packages%2Fo%2Fopenafs.git ptserver: improve PR_GetHostCPS logging 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 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk (cherry picked from commit 8225518cd08b810bf3d8c74e27e3d3a753b6b30b) Change-Id: Idbb380fa0c9d71398ea2d47ba49fd217be9f9f26 Reviewed-on: https://gerrit.openafs.org/13147 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk --- diff --git a/src/ptserver/ptprocs.c b/src/ptserver/ptprocs.c index 039077ac2..3045ef45f 100644 --- a/src/ptserver/ptprocs.c +++ b/src/ptserver/ptprocs.c @@ -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; }