From: Andrew Deason Date: Tue, 15 Jun 2010 15:58:58 +0000 (-0500) Subject: Make h_stateVerifyAddrHash log port on errors X-Git-Tag: openafs-devel-1_5_75~113 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=4481a22dc7fa48c7a057f27828da44ab0b4dbf26;p=packages%2Fo%2Fopenafs.git Make h_stateVerifyAddrHash log port on errors When h_stateVerifyAddrHash logs that an error in state verification occurs, it was only logging the address of the host causing the problem. Log the port, too, since there could be multiple hosts with the same address. Change-Id: Ideee34f075948a0cb7cc1014920be5e120bdc6ef Reviewed-on: http://gerrit.openafs.org/2204 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/viced/host.c b/src/viced/host.c index bdd3255c6..d8bbcb692 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -2945,11 +2945,13 @@ h_stateVerifyAddrHash(struct fs_dump_state * state, struct host * h, afs_uint32 if (!found) { afs_inet_ntoa_r(addr, tmp); if (state->mode == FS_STATE_LOAD_MODE) { - ViceLog(0, ("h_stateVerifyAddrHash: error: addr %s not found in hash\n", tmp)); + ViceLog(0, ("h_stateVerifyAddrHash: error: addr %s:%u not found in hash\n", + tmp, (unsigned)htons(port))); ret = 1; goto done; } else { - ViceLog(0, ("h_stateVerifyAddrHash: warning: addr %s not found in hash\n", tmp)); + ViceLog(0, ("h_stateVerifyAddrHash: warning: addr %s:%u not found in hash\n", + tmp, (unsigned)htons(port))); state->flags.warnings_generated = 1; } }