From: Andrew Deason Date: Tue, 24 Nov 2009 21:09:42 +0000 (-0500) Subject: Dump all hostFlags in hosts.dump X-Git-Tag: openafs-devel-1_5_69~111 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=3cb49f57a34b42c9efdc24797efda053cd88be80;p=packages%2Fo%2Fopenafs.git Dump all hostFlags in hosts.dump Currently only certain flags are dumped in hosts.dump. Also dump the value of hostFlags itself, so we get more information from a host dump. Change-Id: I2d265b85e057c2d44938e1d92f4c102048c4bf1f Reviewed-on: http://gerrit.openafs.org/869 Tested-by: Andrew Deason Reviewed-by: Dan Hyde Reviewed-by: Alistair Ferguson Tested-by: Alistair Ferguson Reviewed-by: Derrick Brashear --- diff --git a/src/viced/host.c b/src/viced/host.c index 01ebee9a0..7fc2e45ff 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -2667,7 +2667,7 @@ h_DumpHost(register struct host *host, int flags, void *rock) ntohs(host->interface->interface[i].port)); (void)STREAM_WRITE(tmpStr, strlen(tmpStr), 1, file); } - sprintf(tmpStr, "] refCount: %d\n", host->refCount); + sprintf(tmpStr, "] refCount:%d hostFlags:%hu\n", host->refCount, host->hostFlags); (void)STREAM_WRITE(tmpStr, strlen(tmpStr), 1, file); H_UNLOCK;