From 4481a22dc7fa48c7a057f27828da44ab0b4dbf26 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Tue, 15 Jun 2010 10:58:58 -0500 Subject: [PATCH] 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 --- src/viced/host.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/viced/host.c b/src/viced/host.c index bdd3255..d8bbcb6 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; } } -- 1.9.4