summaryrefslogtreecommitdiffstats
path: root/super0.c
diff options
context:
space:
mode:
Diffstat (limited to 'super0.c')
-rw-r--r--super0.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/super0.c b/super0.c
index 7fe2336..d1fbfae 100644
--- a/super0.c
+++ b/super0.c
@@ -231,7 +231,7 @@ static void brief_examine_super0(void *sbv)
printf("\n");
}
-static void detail_super0(void *sbv)
+static void detail_super0(void *sbv, char *homehost)
{
mdp_super_t *sb = sbv;
printf(" UUID : ");
@@ -240,6 +240,13 @@ static void detail_super0(void *sbv)
sb->set_uuid2, sb->set_uuid3);
else
printf("%08x", sb->set_uuid0);
+ if (homehost) {
+ unsigned char *hash = SHA1((unsigned char *)homehost,
+ strlen(homehost),
+ NULL);
+ if (memcmp(&sb->set_uuid2, hash, 8)==0)
+ printf(" (local to host %s)", homehost);
+ }
printf("\n Events : %d.%d\n\n", sb->events_hi, sb->events_lo);
}