10 void dofindpath(uint64_t have, uint64_t want, bool html)
12 struct stats_key *keyinfoa, *keyinfob, *curkey;
16 * Make sure the key we have and want are in the cache.
18 hash_getkeysigs(have);
19 hash_getkeysigs(want);
21 if ((keyinfoa = findinhash(have)) == NULL) {
22 printf("550 Couldn't find key 0x%llX.\n", have);
25 if ((keyinfob = findinhash(want)) == NULL) {
26 printf("550 Couldn't find key 0x%llX.\n", want);
31 * Fill the tree info up.
34 rec = findpath(keyinfoa, keyinfob);
37 printf("%d nodes examined. %ld elements in the hash\n", rec,
39 if (keyinfoa->colour == 0) {
40 printf("550 Can't find a link from 0x%llX to 0x%llX\n",
44 printf("250-%d steps from 0x%llX to 0x%llX\n",
45 keyinfoa->colour, have, want);
47 while (curkey != NULL) {
48 printf("250-0x%llX (%s)\n",
50 keyid2uid(curkey->keyid));
51 curkey = findinhash(curkey->parent);
56 int main(int argc, char *argv[])
60 dofindpath(0x5B430367, 0x3E1D0C1C, false);
61 dofindpath(0x3E1D0C1C, 0x5B430367, false);