summaryrefslogtreecommitdiffstats
path: root/super0.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2008-04-28 16:29:45 +1000
committerNeil Brown <neilb@suse.de>2008-04-28 16:29:45 +1000
commit1486e43fec5394bcb23a90f678451a8c3e378b10 (patch)
tree94035bec274107c0c09209ad4864e46b1584443d /super0.c
parent7a3be72fc621b4a7589e923cf0652c51493f831a (diff)
downloadmdadm-1486e43fec5394bcb23a90f678451a8c3e378b10.tar.gz
mdadm-1486e43fec5394bcb23a90f678451a8c3e378b10.tar.xz
mdadm-1486e43fec5394bcb23a90f678451a8c3e378b10.zip
Print 'Events' more sensibly.
Instead of MSW.LSW, just print it as a 64bit number.
Diffstat (limited to 'super0.c')
-rw-r--r--super0.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/super0.c b/super0.c
index 0cff1ef..2ca127e 100644
--- a/super0.c
+++ b/super0.c
@@ -179,7 +179,9 @@ static void examine_super0(struct supertype *st, char *homehost)
printf(" Checksum : %x - correct\n", sb->sb_csum);
else
printf(" Checksum : %x - expected %lx\n", sb->sb_csum, calc_sb0_csum(sb));
- printf(" Events : %d.%d\n", sb->events_hi, sb->events_lo);
+ printf(" Events : %llu\n",
+ ((unsigned long long)sb->events_hi << 32)
+ + sb->events_lo);
printf("\n");
if (sb->level == 5) {
c = map_num(r5layout, sb->layout);