From 001a61a6180bb1c70401c40c8cd1d38d804eba8c Mon Sep 17 00:00:00 2001 From: Rod Widdowson Date: Wed, 24 Mar 2010 16:59:15 +0000 Subject: [PATCH] Render the IP address for the "Ubik: Lost contact with sync-site" log message in the same way that all other IP addresses are (via afs_inet_ntoa, rather than stripping the buytes out in a manner which assumes a specific endianism). Done more as a way to test my understanding of the GIT/GERRIT technology with a small non-important checkin. Change-Id: I177e1288e8e23087aeebb7abe4ed63a7c2b88ccb Reviewed-on: http://gerrit.openafs.org/1649 Tested-by: Rod Widdowson Reviewed-by: Rod Widdowson Reviewed-by: Simon Wilkinson Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/ubik/vote.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ubik/vote.c b/src/ubik/vote.c index 4635c63..c1ec6f5 100644 --- a/src/ubik/vote.c +++ b/src/ubik/vote.c @@ -276,9 +276,8 @@ SVOTE_Beacon(register struct rx_call * rxcall, afs_int32 astate, } else if (syncTime + BIGTIME < now) { if (syncHost) { ubik_dprint - ("Ubik: Lost contact with sync-site %d.%d.%d.%d (NOT in quorum)\n", - ((syncHost >> 24) & 0xff), ((syncHost >> 16) & 0xff), - ((syncHost >> 8) & 0xff), (syncHost & 0xff)); + ("Ubik: Lost contact with sync-site %s (NOT in quorum)\n", + afs_inet_ntoa(syncHost)); } syncHost = 0; } -- 1.9.4