Simplify two warning messages
authorEric Biggers <ebiggers3@gmail.com>
Mon, 13 Jan 2014 20:15:57 +0000 (14:15 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Mon, 13 Jan 2014 20:16:00 +0000 (14:16 -0600)
src/inode_fixup.c
src/verify.c

index 5f203b7..799f3ba 100644 (file)
@@ -441,7 +441,8 @@ dentry_tree_fix_inodes(struct wim_dentry *root, struct list_head *inode_list)
        if (ino_changes_needed) {
                u64 cur_ino = 1;
 
-               WARNING("Re-assigning inode numbers due to inode inconsistencies");
+               WARNING("The WIM image contains invalid hard links.  Fixing.");
+
                list_for_each_entry(inode, inode_list, i_list) {
                        if (inode->i_nlink > 1)
                                inode->i_ino = cur_ino++;
index 063834f..2c0105b 100644 (file)
@@ -37,13 +37,6 @@ static int
 lte_fix_refcnt(struct wim_lookup_table_entry *lte, void *ctr)
 {
        if (lte->refcnt != lte->real_refcnt) {
-               if (wimlib_print_errors) {
-                       WARNING("The following lookup table entry has a reference "
-                               "count of %u, but", lte->refcnt);
-                       WARNING("We found %u references to it",
-                               lte->real_refcnt);
-                       print_lookup_table_entry(lte, stderr);
-               }
                lte->refcnt = lte->real_refcnt;
                ++*(unsigned long *)ctr;
        }
@@ -98,9 +91,7 @@ wim_recalculate_refcnts(WIMStruct *wim)
        for_lookup_table_entry(wim->lookup_table, lte_fix_refcnt,
                               &num_ltes_with_bogus_refcnt);
        if (num_ltes_with_bogus_refcnt != 0) {
-               WARNING("A total of %lu entries in the WIM's stream "
-                       "lookup table had to have\n"
-                       "          their reference counts fixed.",
+               WARNING("%lu stream(s) had incorrect reference count.",
                        num_ltes_with_bogus_refcnt);
        }
        wim->refcnts_ok = 1;