]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Remove some noisy printfs.
authorNeil Brown <neilb@suse.de>
Sat, 12 Jul 2008 10:27:41 +0000 (20:27 +1000)
committerNeil Brown <neilb@suse.de>
Sat, 12 Jul 2008 10:27:41 +0000 (20:27 +1000)
monitor.c
super-ddf.c

index 22ae27b33f8274493886ca95012c1df7baba65a8..fda3fc01049f2504340d66b55f76a9f35550694b 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -242,7 +242,7 @@ static int read_and_act(struct active_array *a)
                 * readonly ???
                 */
                get_resync_start(a);
-               printf("Found a readonly array at %llu\n", a->resync_start);
+//             printf("Found a readonly array at %llu\n", a->resync_start);
                if (a->resync_start == ~0ULL)
                        a->next_state = read_auto; /* array is clean */
                else {
index aefe25ef25cb22f07e951fc2b7dbb37712894ffb..e5f3fbdb65bd7a01af4e30958e89e575a0251e6f 100644 (file)
@@ -2796,7 +2796,7 @@ static void ddf_process_update(struct supertype *st,
        int mppe;
        int ent;
 
-       printf("Process update %x\n", *magic);
+//     printf("Process update %x\n", *magic);
 
        switch (*magic) {
        case DDF_PHYS_RECORDS_MAGIC:
@@ -2834,7 +2834,7 @@ static void ddf_process_update(struct supertype *st,
                break;
 
        case DDF_VD_CONF_MAGIC:
-               printf("len %d %d\n", update->len, ddf->conf_rec_len);
+//             printf("len %d %d\n", update->len, ddf->conf_rec_len);
 
                mppe = __be16_to_cpu(ddf->anchor.max_primary_element_entries);
                if (update->len != ddf->conf_rec_len * 512)
@@ -2843,7 +2843,7 @@ static void ddf_process_update(struct supertype *st,
                for (vcl = ddf->conflist; vcl ; vcl = vcl->next)
                        if (memcmp(vcl->conf.guid, vc->guid, DDF_GUID_LEN) == 0)
                                break;
-               printf("vcl = %p\n", vcl);
+//             printf("vcl = %p\n", vcl);
                if (vcl) {
                        /* An update, just copy the phys_refnum and lba_offset
                         * fields
@@ -2868,8 +2868,8 @@ static void ddf_process_update(struct supertype *st,
                                for (dn=0; dn < ddf->mppe ; dn++)
                                        if (vcl->conf.phys_refnum[dn] ==
                                            dl->disk.refnum) {
-                                               printf("dev %d has %p at %d\n",
-                                                      dl->pdnum, vcl, vn);
+//                                             printf("dev %d has %p at %d\n",
+//                                                    dl->pdnum, vcl, vn);
                                                dl->vlist[vn++] = vcl;
                                                break;
                                        }
@@ -2954,8 +2954,8 @@ static struct mdinfo *ddf_activate_spare(struct active_array *a,
                        working ++;
        }
 
-       printf("ddf_activate: working=%d (%d) level=%d\n", working, a->info.array.raid_disks,
-              a->info.array.level);
+//     printf("ddf_activate: working=%d (%d) level=%d\n", working, a->info.array.raid_disks,
+//            a->info.array.level);
        if (working == a->info.array.raid_disks)
                return NULL; /* array not degraded */
        switch (a->info.array.level) {