]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
DDF: add debug message in add_super_ddf_bvd
authormwilck@arcor.de <mwilck@arcor.de>
Mon, 8 Jul 2013 21:50:44 +0000 (23:50 +0200)
committerNeilBrown <neilb@suse.de>
Wed, 10 Jul 2013 00:42:01 +0000 (10:42 +1000)
Signed-off-by: NeilBrown <neilb@suse.de>
super-ddf.c

index c96fac564407e05987e7c981af71d4834e135a0d..1b9944f7350636c9f2dde1508e9f605950f72deb 100644 (file)
@@ -2551,6 +2551,10 @@ static void add_to_super_ddf_bvd(struct supertype *st,
                | get_svd_state(ddf, ddf->currentconf);
        ddf->phys->entries[dl->pdnum].type &= ~__cpu_to_be16(DDF_Global_Spare);
        ddf->phys->entries[dl->pdnum].type |= __cpu_to_be16(DDF_Active_in_VD);
+       dprintf("%s: added disk %d/%08x to VD %d/%s as disk %d\n",
+               __func__, dl->pdnum, __be32_to_cpu(dl->disk.refnum),
+               ddf->currentconf->vcnum, guid_str(vc->guid),
+               dk->raid_disk);
        ddf_set_updates_pending(ddf);
 }